Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 35 lines (28 sloc) 0.887 kB
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
pearu authored
1
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
2 import os
3 import sys
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
pearu authored
4
14db419 Fixing for new distutils
Travis Oliphant authored
5 def setup_package():
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
pearu authored
6
14db419 Fixing for new distutils
Travis Oliphant authored
7 from distutils.core import setup
8 from distutils.misc_util import Configuration
9 from base.core_version import version
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
10
11 old_path = os.getcwd()
d190674 @pearu Now one can run 'python /full/path/to/scipy_core/setup.py'
pearu authored
12 local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
13 os.chdir(local_path)
14db419 Fixing for new distutils
Travis Oliphant authored
14 sys.path.insert(0,local_path)
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
15
16 try:
14db419 Fixing for new distutils
Travis Oliphant authored
17 config = Configuration(
18 version = version,
19 maintainer = "Travis Oliphant",
20 maintainer_email = "oliphant.travis@ieee.org",
21 description = "Core SciPy",
22 url = "http://numpy.sourceforge.net",
23 )
24 config.add_subpackage('scipy')
25 config.name = 'scipy_core'
26 print config.name,'version',config.version
27 setup( **config.todict() )
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
28 finally:
29 del sys.path[0]
30 os.chdir(old_path)
14db419 Fixing for new distutils
Travis Oliphant authored
31 return
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
pearu authored
32
14db419 Fixing for new distutils
Travis Oliphant authored
33 if __name__ == '__main__':
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
34 setup_package()
Something went wrong with that request. Please try again.