Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 49 lines (39 sloc) 1.656 kb
import os
import sys
def setup_package():
os.environ['NO_SCIPY_IMPORT']='SciPy/setup.py'
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
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)
sys.path.insert(0,os.path.join(local_path,'Lib'))
try:
config = Configuration(\
maintainer = "SciPy Developers",
maintainer_email = "scipy-dev@scipy.org",
description = "Scientific Algorithms Library for Python",
url = "http://www.scipy.org",
license = 'BSD',
)
if hasattr(config,'set_options'):
config.set_options(ignore_setup_xxx_py=True,
assume_default_configuration=True,
delegate_options_to_subpackages=True,
quiet=True)
# Force scipy to be a package (its __init__.py file comes from scipy_core)
config.packages.append('scipy')
config.package_dir['scipy'] = os.path.join(config.local_path,'Lib')
config.add_subpackage('Lib')
config.name = 'scipy'
from version import version as version
config.dict_append(version=version)
print config.name,'version',config.version
setup( **config.todict() )
finally:
del sys.path[0]
os.chdir(old_path)
return
if __name__ == '__main__':
setup_package()
Jump to Line
Something went wrong with that request. Please try again.