Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 91 lines (73 sloc) 3.077 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
00a3587 Fix some problems with data-files not being added in top-level and extra...
Travis Oliphant authored
9 create arrays of arbitrary type which also makes NumPy suitable for
10 interfacing with general-purpose data-base applications.
da9c6da Fix-up setup.py
Travis Oliphant authored
11
12 There are also basic facilities for discrete fourier transform,
13 basic linear algebra and random number generation.
14 """
15
16 DOCLINES = __doc__.split("\n")
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
17
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
18 import os
19 import sys
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
20
da9c6da Fix-up setup.py
Travis Oliphant authored
21 CLASSIFIERS = """\
22 Development Status :: 4 - Beta
23 Intended Audience :: Science/Research
24 Intended Audience :: Developers
25 License :: OSI Approved
26 Programming Language :: C
27 Programming Language :: Python
28 Topic :: Software Development
29 Topic :: Scientific/Engineering
30 Operating System :: Microsoft :: Windows
31 Operating System :: POSIX
32 Operating System :: Unix
33 Operating System :: MacOS
34 """
35
36d3c16 @fperez Remove MANIFEST file at startup time, since distutils fails to properly ...
fperez authored
36 # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
37 # update it when the contents of directories change.
38 if os.path.exists('MANIFEST'): os.remove('MANIFEST')
39
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
40 def configuration(parent_package='',top_path=None):
41 from numpy.distutils.misc_util import Configuration
42
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
43 config = Configuration(None, parent_package, top_path)
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
44 config.set_options(ignore_setup_xxx_py=True,
45 assume_default_configuration=True,
46 delegate_options_to_subpackages=True,
47 quiet=True)
0b77f0e @jarrodmillman ran reindent.py to clean up whitespace
jarrodmillman authored
48
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
49 config.add_subpackage('numpy')
0b77f0e @jarrodmillman ran reindent.py to clean up whitespace
jarrodmillman authored
50
7b76ca7 @pearu Fix ticket 535.
pearu authored
51 config.add_data_files(('numpy','*.txt'),
52 ('numpy','COMPATIBILITY'),
0b77f0e @jarrodmillman ran reindent.py to clean up whitespace
jarrodmillman authored
53 ('numpy','scipy_compatibility'),
7b76ca7 @pearu Fix ticket 535.
pearu authored
54 ('numpy','site.cfg.example'))
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
55
56 config.get_version('numpy/version.py') # sets config.version
00a3587 Fix some problems with data-files not being added in top-level and extra...
Travis Oliphant authored
57
471196b @pearu Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
58 return config
59
14db419 Fixing for new distutils
Travis Oliphant authored
60 def setup_package():
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
61
da9c6da Fix-up setup.py
Travis Oliphant authored
62 from numpy.distutils.core import setup
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
63
64 old_path = os.getcwd()
d190674 @pearu Now one can run 'python /full/path/to/scipy_core/setup.py'
pearu authored
65 local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
66 os.chdir(local_path)
14db419 Fixing for new distutils
Travis Oliphant authored
67 sys.path.insert(0,local_path)
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
68
69 try:
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
70 setup(
71 name = 'numpy',
72 maintainer = "NumPy Developers",
73 maintainer_email = "numpy-discussion@lists.sourceforge.net",
74 description = DOCLINES[0],
75 long_description = "\n".join(DOCLINES[2:]),
76 url = "http://numeric.scipy.org",
2276bf7 Use correct download url in setup.py so that setuptool's easy_install wo...
cookedm authored
77 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
78 license = 'BSD',
79 classifiers=filter(None, CLASSIFIERS.split('\n')),
80 author = "Travis E. Oliphant, et.al.",
81 author_email = "oliphant@ee.byu.edu",
0b77f0e @jarrodmillman ran reindent.py to clean up whitespace
jarrodmillman authored
82 platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
17d7cfe @pearu Fix version machinery and pkg information requests.
pearu authored
83 configuration=configuration )
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
84 finally:
85 del sys.path[0]
86 os.chdir(old_path)
14db419 Fixing for new distutils
Travis Oliphant authored
87 return
c415fd1 @pearu Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
88
14db419 Fixing for new distutils
Travis Oliphant authored
89 if __name__ == '__main__':
e8fa013 @pearu scipy_core package is now functional. Usage:
pearu authored
90 setup_package()
Something went wrong with that request. Please try again.