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.064 kb
36d3c16 Fernando Perez 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 Peterson Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
17
e8fa013 Pearu Peterson scipy_core package is now functional. Usage:
pearu authored
18 import os
19 import sys
c415fd1 Pearu Peterson 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 Fernando Perez 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 Peterson 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 Peterson Fix version machinery and pkg information requests.
pearu authored
43 config = Configuration(None, parent_package, top_path)
471196b Pearu Peterson 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)
48
49 config.add_subpackage('numpy')
17d7cfe Pearu Peterson Fix version machinery and pkg information requests.
pearu authored
50
00a3587 Fix some problems with data-files not being added in top-level and extra...
Travis Oliphant authored
51 config.add_data_files(('numpy','*.txt'), ('.','COMPATIBILITY'),
52 ('.','scipy_compatibility'),
53 ('.','site.cfg.example'))
17d7cfe Pearu Peterson Fix version machinery and pkg information requests.
pearu authored
54
55 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
56
471196b Pearu Peterson Introduced configuration kw argument to setup. This fixes long lasted lo...
pearu authored
57 return config
58
14db419 Fixing for new distutils
Travis Oliphant authored
59 def setup_package():
c415fd1 Pearu Peterson Bundle scipy_test,scipy_distutils to scipy_core. See the header of setup...
pearu authored
60
da9c6da Fix-up setup.py
Travis Oliphant authored
61 from numpy.distutils.core import setup
e8fa013 Pearu Peterson scipy_core package is now functional. Usage:
pearu authored
62
63 old_path = os.getcwd()
d190674 Pearu Peterson Now one can run 'python /full/path/to/scipy_core/setup.py'
pearu authored
64 local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
65 os.chdir(local_path)
14db419 Fixing for new distutils
Travis Oliphant authored
66 sys.path.insert(0,local_path)
e8fa013 Pearu Peterson scipy_core package is now functional. Usage:
pearu authored
67
68 try:
17d7cfe Pearu Peterson Fix version machinery and pkg information requests.
pearu authored
69 setup(
70 name = 'numpy',
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 Peterson 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 Peterson 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 Peterson 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 Peterson scipy_core package is now functional. Usage:
pearu authored
89 setup_package()
Something went wrong with that request. Please try again.