Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 90 lines (72 sloc) 3.042 kb
36d3c16 @fperez Remove MANIFEST file at startup time, since distutils fails to properly ...
fperez authored
1 #!/usr/bin/env python
c8b5a7e Fixed error in setflags and added a few unit tests for test_multiarray
Travis Oliphant authored
2 """NumPy: array processing for numbers, strings, records, and objects.
da9c6da Fix-up setup.py
Travis Oliphant authored
3
c8b5a7e Fixed error in setflags and added a few unit tests for test_multiarray
Travis Oliphant authored
4 NumPy is a general-purpose array-processing package designed to
da9c6da Fix-up setup.py
Travis Oliphant authored
5 efficiently manipulate large multi-dimensional arrays of arbitrary
6 records without sacrificing too much speed for small multi-dimensional
c8b5a7e Fixed error in setflags and added a few unit tests for test_multiarray
Travis Oliphant authored
7 arrays. NumPy is built on the Numeric code base and adds features
da9c6da Fix-up setup.py
Travis Oliphant authored
8 introduced by numarray as well as an extended C-API and the ability to
9 create arrays of arbitrary type.
10
11 There are also basic facilities for discrete fourier transform,
12 basic linear algebra and random number generation.
13 """
14
15 DOCLINES = __doc__.split("\n")
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
16
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
17 import os
18 import sys
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
19
da9c6da Fix-up setup.py
Travis Oliphant authored
20 CLASSIFIERS = """\
21 Development Status :: 4 - Beta
22 Intended Audience :: Science/Research
23 Intended Audience :: Developers
24 License :: OSI Approved
25 Programming Language :: C
26 Programming Language :: Python
27 Topic :: Software Development
28 Topic :: Scientific/Engineering
29 Operating System :: Microsoft :: Windows
30 Operating System :: POSIX
31 Operating System :: Unix
32 Operating System :: MacOS
33 """
34
36d3c16 @fperez Remove MANIFEST file at startup time, since distutils fails to properly ...
fperez authored
35 # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
36 # update it when the contents of directories change.
37 if os.path.exists('MANIFEST'): os.remove('MANIFEST')
38
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
39 def configuration(parent_package='',top_path=None):
40 from numpy.distutils.misc_util import Configuration
41
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
42 config = Configuration(None, parent_package, top_path)
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
43 config.set_options(ignore_setup_xxx_py=True,
44 assume_default_configuration=True,
45 delegate_options_to_subpackages=True,
46 quiet=True)
47
48 config.add_subpackage('numpy')
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
49
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
50 config.add_data_files(('numpy',['*.txt','COMPATIBILITY',
51 'scipy_compatibility']))
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
52
53 config.get_version('numpy/version.py') # sets config.version
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
54
55 return config
56
14db419 Fixing for new distutils
Travis Oliphant authored
57 def setup_package():
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
58
da9c6da Fix-up setup.py
Travis Oliphant authored
59 from numpy.distutils.core import setup
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
60
61 old_path = os.getcwd()
d190674 @pearu Now one can run 'python /full/path/to/scipy_core/setup.py'
pearu authored
62 local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
63 os.chdir(local_path)
14db419 Fixing for new distutils
Travis Oliphant authored
64 sys.path.insert(0,local_path)
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
65
66 try:
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
67 from numpy.version import version
68 setup(
69 name = 'numpy',
70 version = version, # will be overwritten by configuration version
71 maintainer = "NumPy Developers",
72 maintainer_email = "numpy-discussion@lists.sourceforge.net",
73 description = DOCLINES[0],
74 long_description = "\n".join(DOCLINES[2:]),
75 url = "http://numeric.scipy.org",
2276bf7 Use correct download url in setup.py so that setuptool's easy_install wo...
cookedm authored
76 download_url = "http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103",
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
77 license = 'BSD',
78 classifiers=filter(None, CLASSIFIERS.split('\n')),
79 author = "Travis E. Oliphant, et.al.",
80 author_email = "oliphant@ee.byu.edu",
81 platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
82 configuration=configuration )
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
83 finally:
84 del sys.path[0]
85 os.chdir(old_path)
14db419 Fixing for new distutils
Travis Oliphant authored
86 return
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
87
14db419 Fixing for new distutils
Travis Oliphant authored
88 if __name__ == '__main__':
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
89 setup_package()
Something went wrong with that request. Please try again.