source: pyomo/trunk/setup.py @ 9475

Last change on this file since 9475 was 9475, checked in by wehart, 4 years ago

Updating the version #.

Renaming transformations to 'base.*' if they didn't have a specific
naming. NOTE: these are in the pyomo.core package ... which seems
odd. But we agreed that 'core' provides a connotation that we don't
intend.

Adding some documentation changes for 'pyomo help -t'.

File size: 4.6 KB
Line 
1#  _________________________________________________________________________
2#
3#  Pyomo: Python Optimization Modeling Objects
4#  Copyright (c) 2008 Sandia Corporation.
5#  This software is distributed under the BSD License.
6#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7#  the U.S. Government retains certain rights in this software.
8#  _________________________________________________________________________
9
10"""
11Script to generate the installer for pyomo.
12"""
13
14import sys
15import glob
16import os
17
18def _find_packages(path):
19    """
20    Generate a list of nested packages
21    """
22    pkg_list=[]
23    if not os.path.exists(path):
24        return []
25    if not os.path.exists(path+os.sep+"__init__.py"):
26        return []
27    else:
28        pkg_list.append(path)
29    for root, dirs, files in os.walk(path, topdown=True):
30        if root in pkg_list and "__init__.py" in files:
31            for name in dirs:
32                if os.path.exists(root+os.sep+name+os.sep+"__init__.py"):
33                    pkg_list.append(root+os.sep+name)
34    return [pkg for pkg in map(lambda x:x.replace(os.sep,"."), pkg_list)]
35
36def read(*rnames):
37    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
38
39requires=[
40            'PyUtilib>=4.7.3340',
41            'ply',
42            'nose',
43            'six>=1.6.1'
44            ]
45if sys.version_info < (2,7):
46        requires.append('argparse')
47        requires.append('unittest2')
48        requires.append('ordereddict')
49
50from setuptools import setup
51packages = _find_packages('pyomo')
52
53setup(name='Pyomo',
54      # Note: trunk should have *next* major.minor
55      #       VOTD + Final releases will have major.minor.revnum
56      # When cutting a release, ALSO update _major/_minor/_micro in
57      #   pyomo/pyomo/version/__init__.py
58      #   pyomo/RELEASE.txt
59      version='4.0',
60      maintainer='William E. Hart',
61      maintainer_email='wehart@sandia.gov',
62      url = 'https://software.sandia.gov/pyomo',
63      license = 'BSD',
64      platforms = ["any"],
65      description = 'Pyomo: Python Optimization Modeling Objects',
66      long_description = read('README.txt'),
67      classifiers = [
68            'Development Status :: 4 - Beta',
69            'Intended Audience :: End Users/Desktop',
70            'Intended Audience :: Science/Research',
71            'License :: OSI Approved :: BSD License',
72            'Natural Language :: English',
73            'Operating System :: Microsoft :: Windows',
74            'Operating System :: Unix',
75            'Programming Language :: Python',
76            'Programming Language :: Unix Shell',
77            'Topic :: Scientific/Engineering :: Mathematics',
78            'Topic :: Software Development :: Libraries :: Python Modules'
79        ],
80      packages=packages,
81      keywords=['optimization'],
82      namespace_packages=['pyomo', 'pyomo.data'],
83      install_requires=requires,
84      entry_points="""
85        [console_scripts]
86        runbenders=pyomo.pysp.benders:Benders_main
87        runph=pyomo.pysp.phinit:PH_main
88        runef=pyomo.pysp.ef_writer_script:main
89        phsolverserver=pyomo.pysp.phsolverserver:main
90        computeconf=pyomo.pysp.computeconf:main
91        PyomoOSSolverService = pyomo.os.OSSolverService:execute
92
93        results_schema=pyomo.scripting.commands:results_schema
94        pyro_mip_server = pyomo.scripting.pyro_mip_server:main
95        test.pyomo = pyomo.scripting.runtests:runPyomoTests
96        pyomo = pyomo.scripting.pyomo_main:main
97        pyomo_ns = pyomo.scripting.commands:pyomo_ns
98        pyomo_nsc = pyomo.scripting.commands:pyomo_nsc
99        kill_pyro_mip_servers = pyomo.scripting.commands:kill_pyro_mip_servers
100        launch_pyro_mip_servers = pyomo.scripting.commands:launch_pyro_mip_servers
101        readsol = pyomo.scripting.commands:readsol
102        OSSolverService = pyomo.scripting.commands:OSSolverService
103        pyomo_python = pyomo.scripting.commands:pyomo_python
104        pyomo_old=pyomo.scripting.pyomo_command:main
105        pyomo2nl=pyomo.scripting.convert:pyomo2nl_main
106        pyomo2lp=pyomo.scripting.convert:pyomo2lp_main
107        pyomo2osil=pyomo.scripting.convert:pyomo2osil_main
108        pyomo2dakota=pyomo.scripting.convert:pyomo2dakota_main
109
110        [pyomo.command]
111        pyomo.runbenders=pyomo.pysp.benders
112        pyomo.runph=pyomo.pysp.phinit
113        pyomo.runef=pyomo.pysp.ef_writer_script
114        pyomo.phsolverserver=pyomo.pysp.phsolverserver
115        pyomo.computeconf=pyomo.pysp.computeconf
116
117        pyomo.help = pyomo.scripting.driver_help
118        pyomo.test.pyomo = pyomo.scripting.runtests
119        pyomo.pyro_mip_server = pyomo.scripting.pyro_mip_server
120        pyomo.results_schema=pyomo.scripting.commands
121      """
122      )
Note: See TracBrowser for help on using the repository browser.