forked from jterrace/pyssim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (45 loc) · 1.19 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
47
48
49
50
51
52
"""Setup script for pyssim."""
from setuptools import find_packages
from setuptools import setup
install_requires = [] # pylint: disable=invalid-name
# pylint: disable=import-error
# pylint: disable=unused-import
# pylint: disable=wrong-import-order
# pylint: disable=wrong-import-position
try:
import PIL
except ImportError:
try:
import Image
except ImportError:
install_requires.append('pillow')
try:
import numpy
except ImportError:
install_requires.append('numpy')
try:
import scipy
except ImportError:
install_requires.append('scipy')
try:
import argparse
except ImportError:
install_requires.append('argparse')
setup(
name='pyssim',
version='0.3',
description=('Module for computing Structured Similarity Image Metric '
'(SSIM) in Python'),
author='Antoine Vacavant, Christopher Godfrey, Jeff Terrace',
author_email='[email protected]',
platforms=['any'],
license='MIT License',
install_requires=install_requires,
url='https://github.com/jterrace/pyssim',
entry_points={
'console_scripts': [
'pyssim = ssim.__main__:main'
]
},
packages=find_packages()
)