forked from lkilcher/dolfyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
63 lines (55 loc) · 2.06 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
53
54
55
56
57
58
59
60
61
62
63
# The setup script for installing DOLfYN.
# from distutils.core import setup
from setuptools import setup, find_packages
import os
import shutil
# Change this to True if you want to include the tests and test data
# in the distribution.
include_tests = False
try:
# This deals with a bug where the tests aren't excluded due to not
# rebuilding the files in this folder.
shutil.rmtree('dolfyn.egg-info')
except OSError:
pass
# Get the version info We do this to avoid importing __init__, which
# depends on other packages that may not yet be installed.
base_dir = os.path.abspath(os.path.dirname(__file__))
version = {}
with open(base_dir + "/dolfyn/_version.py") as fp:
exec(fp.read(), version)
config = dict(
name='dolfyn',
version=version['__version__'],
description='Doppler Ocean Library for pYthoN.',
author='Levi Kilcher',
author_email='[email protected]',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
#'Topic :: Scientific/Engineering :: Earth Science',
],
url='http://github.com/lkilcher/dolfyn',
packages=find_packages(exclude=['*.test']),
# ['dolfyn', 'dolfyn.adv', 'dolfyn.io', 'dolfyn.data',
# 'dolfyn.meta', 'dolfyn.tools', 'dolfyn.adp', ],
package_data={},
install_requires=['numpy', 'scipy', 'h5py', 'pyDictH5'],
provides=['dolfyn', ],
scripts=['scripts/motcorrect_vector.py', 'scripts/vec2mat.py'],
# entry_points = {
# 'console_scripts':
# ['motcorrect_vector = dolfyn.adv.scripts:motcorrect_vector',
# ],
# },
dependency_links=['https://pypi.python.org/pypi/',
'https://github.com/lkilcher/pyDictH5/tarball/master#egg=pyDictH5'],
# cmdclass =
# {'install_data':chmod_install_data,'install':chmod_install,},
)
if include_tests:
config['packages'].append('dolfyn.test')
config['package_data'].update({'dolfyn.test': ['data/*']},)
setup(**config)