-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
59 lines (50 loc) · 1.98 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
descr = """
"""
from os.path import join
import os
import sys
DISTNAME = 'scikits.optimization'
DESCRIPTION = 'A python module for numerical optimization'
LONG_DESCRIPTION = descr
MAINTAINER = 'Matthieu Brucher'
MAINTAINER_EMAIL = '[email protected]'
URL = 'http://projects.scipy.org/scipy/scikits'
LICENSE = 'new BSD'
optimization_version = 0.3
import setuptools, string, shutil
from distutils.errors import DistutilsError
from numpy.distutils.system_info import system_info, NotFoundError, dict_append, so_ext
from numpy.distutils.core import setup, Extension
import os, sys
DOC_FILES = []
def configuration(parent_package='',top_path=None, package_name=DISTNAME):
if os.path.exists('MANIFEST'): os.remove('MANIFEST')
pkg_prefix_dir = os.path.join('scikits', 'optimization')
from numpy.distutils.misc_util import Configuration
config = Configuration(package_name,parent_package,top_path,
version = optimization_version,
maintainer = MAINTAINER,
maintainer_email = MAINTAINER_EMAIL,
description = DESCRIPTION,
license = LICENSE,
url = URL,
long_description = LONG_DESCRIPTION)
return config
if __name__ == "__main__":
setup(configuration = configuration,
install_requires='numpy', # can also add version specifiers
namespace_packages=['scikits'],
packages=setuptools.find_packages(),
include_package_data = True,
test_suite='',#"scikits.openopt.tests", # for python setup.py test
zip_safe=False, # the package can run out of an .egg file
classifiers =
[ 'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering']
)