forked from dbohdan/unflattener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (40 loc) · 1.14 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from __future__ import print_function
from setuptools import setup
from unflattener import __version__ as VERSION
PIL_DEP = 'pil >= 1.1.7'
PILLOW_DEP = 'pillow >= 2.2.1'
REQUIRES = [
'numpy',
]
try:
import PIL
# Use the original PIL if is it installed. Since v1.1.7 is the first
# version compatible with Python 2.7 the PIL version shouldn't be a
# problem.
if not hasattr(PIL, 'PILLOW_VERSION'):
REQUIRES.append(PIL_DEP)
else:
REQUIRES.append(PILLOW_DEP)
except:
print('Module PIL not found. Depending on Pillow by default.')
REQUIRES.append(PILLOW_DEP)
setup(
name='Unflattener',
version=VERSION,
description='Make normal maps for 2D art.',
url='http://github.com/dbohdan/unflattener',
author='Danyil Bohdan',
author_email='danyil.bohdan@gmail.com',
license='BSD',
packages=['unflattener'],
package_dir='',
data_files=[('', ['LICENSE', 'README.md'])],
test_suite='unflattener.tests.suite',
zip_safe=False,
install_requires=REQUIRES,
entry_points = {
'console_scripts': [
'unflatten = unflattener.unflatten:main',
],
}
)