forked from holoviz-topics/imagen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
69 lines (54 loc) · 2.23 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
64
65
66
67
68
69
#!/usr/bin/env python
import sys
from distutils.core import setup
setup_args = {}
#############################################################################################
##### CEBALERT: copied from topographica; should be simplified
required = {'param':">=0.0.1",
'numpy':">=1.0"}
# could add tkinter, paramtk
# optional = {}
packages_to_install = [required]
packages_to_state = [required]
setup_args = {}
if 'setuptools' in sys.modules:
# support easy_install without depending on setuptools
install_requires = []
for package_list in packages_to_install:
install_requires+=["%s%s"%(package,version) for package,version in package_list.items()]
setup_args['install_requires']=install_requires
setup_args['dependency_links']=["http://pypi.python.org/simple/"]
setup_args['zip_safe']=False # CEBALERT: probably ok for imagen; haven't checked
for package_list in packages_to_state:
requires = []
requires+=["%s (%s)"%(package,version) for package,version in package_list.items()]
setup_args['requires']=requires
#############################################################################################
setup_args.update(dict(
name='imagen',
version='1.0',
description='Generic Python library for 0D, 1D, and 2D pattern distributions.',
long_description=open('README.rst').read(),
author= "IOAM",
author_email= "[email protected]",
maintainer= "IOAM",
maintainer_email= "[email protected]",
platforms=['Windows', 'Mac OS X', 'Linux'],
license='BSD',
url='http://ioam.github.com/imagen/',
packages = ["imagen","numbergen"],
classifiers = [
"License :: OSI Approved :: BSD License",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Natural Language :: English",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries"]
))
if __name__=="__main__":
setup(**setup_args)