source: coopr.pysos/trunk/setup.py @ 2074

Last change on this file since 2074 was 2074, checked in by wehart, 10 years ago

Tagging coopr.pysos 2.0.1 release

File size: 2.4 KB
Line 
1#  _________________________________________________________________________
2#
3#  Coopr: A COmmon Optimization Python Repository
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 coopr.pysos.
12"""
13
14import glob
15import os
16
17def _find_packages(path):
18    """
19    Generate a list of nested packages
20    """
21    pkg_list=[]
22    if not os.path.exists(path):
23        return []
24    if not os.path.exists(path+os.sep+"__init__.py"):
25        return []
26    else:
27        pkg_list.append(path)
28    for root, dirs, files in os.walk(path, topdown=True):
29      if root in pkg_list and "__init__.py" in files:
30         for name in dirs:
31           if os.path.exists(root+os.sep+name+os.sep+"__init__.py"):
32              pkg_list.append(root+os.sep+name)
33    return map(lambda x:x.replace(os.sep,"."), pkg_list)
34
35def read(*rnames):
36    return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
37
38from setuptools import setup
39packages = _find_packages('coopr')
40
41scripts = glob.glob("scripts/*")
42
43setup(name='coopr.pysos',
44      version='2.1',
45      maintainer='William E. Hart',
46      maintainer_email='wehart@sandia.gov',
47      url = 'https://software.sandia.gov/svn/public/coopr/coopr.pysos',
48      license = 'BSD',
49      platforms = ["any"],
50      description = 'Coopr utilities for composing heterogeous models',
51      long_description = read('README.txt'),
52      classifiers = [
53            'Development Status :: 4 - Beta',
54            'Intended Audience :: End Users/Desktop',
55            'Intended Audience :: Science/Research',
56            'License :: OSI Approved :: BSD License',
57            'Natural Language :: English',
58            'Operating System :: Microsoft :: Windows',
59            'Operating System :: Unix',
60            'Programming Language :: Python',
61            'Programming Language :: Unix Shell',
62            'Topic :: Scientific/Engineering :: Mathematics',
63            'Topic :: Software Development :: Libraries :: Python Modules',
64            'Topic :: Scientific/Engineering'
65        ],
66      packages=packages,
67      keywords=['optimization'],
68      scripts=scripts,
69      namespace_packages=['coopr']
70      )
71
Note: See TracBrowser for help on using the repository browser.