Skip to content
This repository
Newer
Older
100755 141 lines (118 sloc) 4.703 kb
36d3c161 »
2006-07-12 Remove MANIFEST file at startup time, since distutils fails to proper…
1 #!/usr/bin/env python
c8b5a7e9 »
2006-01-06 Fixed error in setflags and added a few unit tests for test_multiarray
2 """NumPy: array processing for numbers, strings, records, and objects.
da9c6da4 »
2006-01-04 Fix-up setup.py
3
c8b5a7e9 »
2006-01-06 Fixed error in setflags and added a few unit tests for test_multiarray
4 NumPy is a general-purpose array-processing package designed to
da9c6da4 »
2006-01-04 Fix-up setup.py
5 efficiently manipulate large multi-dimensional arrays of arbitrary
6 records without sacrificing too much speed for small multi-dimensional
c8b5a7e9 »
2006-01-06 Fixed error in setflags and added a few unit tests for test_multiarray
7 arrays. NumPy is built on the Numeric code base and adds features
da9c6da4 »
2006-01-04 Fix-up setup.py
8 introduced by numarray as well as an extended C-API and the ability to
00a35871 »
2007-05-31 Fix some problems with data-files not being added in top-level and ex…
9 create arrays of arbitrary type which also makes NumPy suitable for
10 interfacing with general-purpose data-base applications.
da9c6da4 »
2006-01-04 Fix-up setup.py
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")
c415fd10 »
2002-11-18 Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
17
083ca640 »
2007-12-30 Modify the setup routine to indicate that it is being run via a system
18 import __builtin__
e8fa0139 »
2003-03-07 scipy_core package is now functional. Usage:
19 import os
20 import sys
c415fd10 »
2002-11-18 Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
21
da9c6da4 »
2006-01-04 Fix-up setup.py
22 CLASSIFIERS = """\
19da971b »
2008-06-18 PyPI metadata fixes.
23 Development Status :: 5 - Production/Stable
da9c6da4 »
2006-01-04 Fix-up setup.py
24 Intended Audience :: Science/Research
25 Intended Audience :: Developers
26 License :: OSI Approved
27 Programming Language :: C
28 Programming Language :: Python
29 Topic :: Software Development
30 Topic :: Scientific/Engineering
31 Operating System :: Microsoft :: Windows
32 Operating System :: POSIX
33 Operating System :: Unix
34 Operating System :: MacOS
35 """
36
c253b72d »
2009-03-27 Use global for distutils metat-data, so that we can pull them from pa…
37 NAME = 'numpy',
38 MAINTAINER = "NumPy Developers",
39 MAINTAINER_EMAIL = "numpy-discussion@scipy.org",
40 DESCRIPTION = DOCLINES[0],
41 LONG_DESCRIPTION = "\n".join(DOCLINES[2:]),
42 URL = "http://numpy.scipy.org",
43 DOWNLOAD_URL = "http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103",
44 LICENSE = 'BSD',
45 CLASSIFIERS = filter(None, CLASSIFIERS.split('\n')),
46 AUTHOR = "Travis E. Oliphant, et.al.",
47 AUTHOR_EMAIL = "oliphant@enthought.com",
48 PLATFORMS = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
a2ac9856 »
2009-03-27 Generate the version.py file, to help keeping the version synchronize…
49 VERSION = '1.4.0'
50 ISRELEASED = False
c253b72d »
2009-03-27 Use global for distutils metat-data, so that we can pull them from pa…
51
36d3c161 »
2006-07-12 Remove MANIFEST file at startup time, since distutils fails to proper…
52 # BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
53 # update it when the contents of directories change.
54 if os.path.exists('MANIFEST'): os.remove('MANIFEST')
55
083ca640 »
2007-12-30 Modify the setup routine to indicate that it is being run via a system
56 # This is a bit hackish: we are setting a global variable so that the main
57 # numpy __init__ can detect if it is being loaded by the setup routine, to
58 # avoid attempting to load components that aren't built yet. While ugly, it's
59 # a lot more robust than what was previously being used.
60 __builtin__.__NUMPY_SETUP__ = True
61
a2ac9856 »
2009-03-27 Generate the version.py file, to help keeping the version synchronize…
62 def write_version_py(filename='numpy/version.py'):
63 cnt = """
64 short_version='%(version)s'
65 version='%(version)s'
66 release=%(isrelease)s
67
68 if not release:
69 version += '.dev'
70 import os
71 svn_version_file = os.path.join(os.path.dirname(__file__),
72 'core','__svn_version__.py')
73 if os.path.isfile(svn_version_file):
74 import imp
75 svn = imp.load_module('numpy.core.__svn_version__',
76 open(svn_version_file),
77 svn_version_file,
78 ('.py','U',1))
79 version += svn.version
80 """
81 a = open(filename, 'w')
82 try:
83 a.write(cnt % {'version': VERSION, 'isrelease': str(ISRELEASED)})
84 finally:
85 a.close()
86
471196b6 »
2006-03-31 Introduced configuration kw argument to setup. This fixes long lasted…
87 def configuration(parent_package='',top_path=None):
88 from numpy.distutils.misc_util import Configuration
89
17d7cfe3 »
2006-04-04 Fix version machinery and pkg information requests.
90 config = Configuration(None, parent_package, top_path)
471196b6 »
2006-03-31 Introduced configuration kw argument to setup. This fixes long lasted…
91 config.set_options(ignore_setup_xxx_py=True,
92 assume_default_configuration=True,
93 delegate_options_to_subpackages=True,
94 quiet=True)
0b77f0e5 »
2007-10-29 ran reindent.py to clean up whitespace
95
471196b6 »
2006-03-31 Introduced configuration kw argument to setup. This fixes long lasted…
96 config.add_subpackage('numpy')
0b77f0e5 »
2007-10-29 ran reindent.py to clean up whitespace
97
7b76ca7d »
2007-06-05 Fix ticket 535.
98 config.add_data_files(('numpy','*.txt'),
99 ('numpy','COMPATIBILITY'),
100 ('numpy','site.cfg.example'))
17d7cfe3 »
2006-04-04 Fix version machinery and pkg information requests.
101
102 config.get_version('numpy/version.py') # sets config.version
00a35871 »
2007-05-31 Fix some problems with data-files not being added in top-level and ex…
103
471196b6 »
2006-03-31 Introduced configuration kw argument to setup. This fixes long lasted…
104 return config
105
14db4193 »
2005-09-14 Fixing for new distutils
106 def setup_package():
c415fd10 »
2002-11-18 Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
107
da9c6da4 »
2006-01-04 Fix-up setup.py
108 from numpy.distutils.core import setup
e8fa0139 »
2003-03-07 scipy_core package is now functional. Usage:
109
110 old_path = os.getcwd()
d1906746 »
2003-11-24 Now one can run 'python /full/path/to/scipy_core/setup.py'
111 local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
112 os.chdir(local_path)
14db4193 »
2005-09-14 Fixing for new distutils
113 sys.path.insert(0,local_path)
e8fa0139 »
2003-03-07 scipy_core package is now functional. Usage:
114
a2ac9856 »
2009-03-27 Generate the version.py file, to help keeping the version synchronize…
115 # Rewrite the version file everytime
116 if os.path.exists('numpy/version.py'): os.remove('numpy/version.py')
117 write_version_py()
118
e8fa0139 »
2003-03-07 scipy_core package is now functional. Usage:
119 try:
17d7cfe3 »
2006-04-04 Fix version machinery and pkg information requests.
120 setup(
c253b72d »
2009-03-27 Use global for distutils metat-data, so that we can pull them from pa…
121 name=NAME,
122 maintainer=MAINTAINER,
123 maintainer_email=MAINTAINER_EMAIL,
124 description=DESCRIPTION,
125 long_description=LONG_DESCRIPTION,
126 url=URL,
127 download_url=DOWNLOAD_URL,
128 license=LICENSE,
129 classifiers=CLASSIFIERS,
130 author=AUTHOR,
131 author_email=AUTHOR_EMAIL,
132 platforms=PLATFORMS,
17d7cfe3 »
2006-04-04 Fix version machinery and pkg information requests.
133 configuration=configuration )
e8fa0139 »
2003-03-07 scipy_core package is now functional. Usage:
134 finally:
135 del sys.path[0]
136 os.chdir(old_path)
14db4193 »
2005-09-14 Fixing for new distutils
137 return
c415fd10 »
2002-11-18 Bundle scipy_test,scipy_distutils to scipy_core. See the header of se…
138
14db4193 »
2005-09-14 Fixing for new distutils
139 if __name__ == '__main__':
e8fa0139 »
2003-03-07 scipy_core package is now functional. Usage:
140 setup_package()
Something went wrong with that request. Please try again.