forked from dwblair/infrapix-mov
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsetup.py
executable file
·42 lines (36 loc) · 1.34 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
#!/usr/bin/python
"""
Setup script for 'infrapix' Python package and commandline tools.
Install with "python setup.py install".
"""
import platform, os, shutil
PACKAGE_METADATA = {
'name' : 'infrapix',
'version' : 'dev',
'author' : "Pioneer Valley Open Science",
'author_email' : "https://github.com/Pioneer-Valley-Open-Science/infrapix/issues",
}
PACKAGE_SOURCE_DIR = 'src'
MAIN_PACKAGE_DIR = 'infrapix'
MAIN_PACKAGE_PATH = os.path.abspath(os.sep.join((PACKAGE_SOURCE_DIR,MAIN_PACKAGE_DIR)))
#dependencies
INSTALL_REQUIRES = [
'numpy >= 1.1.0',
'matplotlib >= 0.98',
]
#scripts and plugins
ENTRY_POINTS = { 'gui_scripts': [],
'console_scripts': [
'infrapix_render = infrapix.commands.render:main','infrapix_single = infrapix.commands.single:main',
],
}
if __name__ == "__main__":
from setuptools import setup, find_packages
setup(package_dir = {'':PACKAGE_SOURCE_DIR},
packages = find_packages(PACKAGE_SOURCE_DIR),
install_requires = INSTALL_REQUIRES,
entry_points = ENTRY_POINTS,
#non-code files
package_data = {'': ['*.jpg']},
**PACKAGE_METADATA
)