comparison setup.py @ 8:eb0f4870a019 default tip

depend on pillow which exists
author Jeff Hammel <k0scist@gmail.com>
date Tue, 03 Nov 2020 08:04:33 -0800
parents 230fb4ae30c7
children
comparison
equal deleted inserted replaced
7:230fb4ae30c7 8:eb0f4870a019
6 filename = os.path.join(os.path.dirname(__file__), 'README.txt') 6 filename = os.path.join(os.path.dirname(__file__), 'README.txt')
7 description = file(filename).read() 7 description = file(filename).read()
8 except: 8 except:
9 description = '' 9 description = ''
10 10
11 # Dependency check at run time 11
12 # If PIL is not found, then it is added in the ``install_requires`` list 12 install_requires = ['pillow']
13 install_requires = [] # Empty list if PIL is found
14 try:
15 try:
16 require('PIL')
17 except DistributionNotFound:
18 require('Image')
19 except DistributionNotFound:
20 install_requires = ['PIL']
21 13
22 version = '0.1.6' 14 version = '0.1.6'
23 15
24 setup(name='cropresize', 16 setup(name='cropresize',
25 version=version, 17 version=version,