-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
63 lines (55 loc) · 1.88 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
"""
Script to generate the installer for pyomo_simplemodel
"""
import sys
import os
def _find_packages(path):
"""
Generate a list of nested packages
"""
pkg_list = []
if not os.path.exists(path):
return []
if not os.path.exists(path+os.sep+"__init__.py"):
return []
else:
pkg_list.append(path)
for root, dirs, files in os.walk(path, topdown=True):
if root in pkg_list and "__init__.py" in files:
for name in dirs:
if os.path.exists(root+os.sep+name+os.sep+"__init__.py"):
pkg_list.append(root+os.sep+name)
return [pkg for pkg in map(lambda x:x.replace(os.sep, "."), pkg_list)]
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
requires = [
'Pyomo>=5.6.2.dev0',
]
from setuptools import setup
packages = _find_packages('pyomo_simplemodel')
setup(name='pyomo_simplemodel',
version='1.1.dev0',
maintainer='William E. Hart',
maintainer_email='[email protected]',
url='http://pyomo.org',
license='BSD',
platforms=["any"],
description='An optimization modeling tool for LP and NLP',
long_description=read('README.txt'),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Unix Shell',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules'
],
packages=packages,
keywords=['optimization'],
install_requires=requires,
)