forked from numpy/numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·35 lines (29 loc) · 914 Bytes
/
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
import os
import sys
def setup_package():
from scipy.distutils.core import setup
from scipy.distutils.misc_util import Configuration
from scipy.core_version import version
old_path = os.getcwd()
local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
os.chdir(local_path)
sys.path.insert(0,local_path)
try:
config = Configuration(
version = version,
maintainer = "SciPy Developers",
maintainer_email = "[email protected]",
description = "Core SciPy",
url = "http://numeric.scipy.org",
license = 'BSD',
)
config.add_subpackage('scipy')
config.name = 'scipy_core'
print config.name,'version',config.version
setup( **config.todict() )
finally:
del sys.path[0]
os.chdir(old_path)
return
if __name__ == '__main__':
setup_package()