comparison setup.py @ 40:a7d8583f7482

[packaging] lets try out scikit learn
author Jeff Hammel <k0scist@gmail.com>
date Mon, 04 Sep 2017 14:30:56 -0700
parents d945a862617c
children 36c141f0f0bd
comparison
equal deleted inserted replaced
39:e7fc3cc57b82 40:a7d8583f7482
8 dependencies = ['h5py', 8 dependencies = ['h5py',
9 'matplotlib', 9 'matplotlib',
10 'numerics', 10 'numerics',
11 'numpy', 11 'numpy',
12 'Pillow', 12 'Pillow',
13 'scikit-learn',
13 'scipy'] 14 'scipy']
14 15
15 # allow use of setuptools/distribute or distutils 16 # allow use of setuptools/distribute or distutils
16 kw = {} 17 kw = {}
17 try: 18 try:
18 from setuptools import setup 19 from setuptools import setup
19 kw['entry_points'] = """ 20 kw['entry_points'] = """
20 [console_scripts] 21 [console_scripts]
21 tvii = tvii.main:main
22 tvii-template = tvii.template:main
23 """ 22 """
24 kw['install_requires'] = dependencies 23 kw['install_requires'] = dependencies
25 except ImportError: 24 except ImportError:
26 from distutils.core import setup 25 from distutils.core import setup
27 kw['requires'] = dependencies 26 kw['requires'] = dependencies
27
28 28
29 try: 29 try:
30 here = os.path.dirname(os.path.abspath(__file__)) 30 here = os.path.dirname(os.path.abspath(__file__))
31 description = open(os.path.join(here, 'README.txt')).read() 31 description = open(os.path.join(here, 'README.txt')).read()
32 except IOError: 32 except IOError: