🌐 AI搜索 & 代理 主页
blob: e43ba2c2ab56f87fe39f9c27e32d389aa2a0a86c [file] [log] [blame]
Travis Oliphantc8b5a7e2006-01-06 02:12:501"""NumPy: array processing for numbers, strings, records, and objects.
Travis Oliphantda9c6da2006-01-04 17:31:072
Travis Oliphantc8b5a7e2006-01-06 02:12:503NumPy is a general-purpose array-processing package designed to
Travis Oliphantda9c6da2006-01-04 17:31:074efficiently manipulate large multi-dimensional arrays of arbitrary
5records without sacrificing too much speed for small multi-dimensional
Travis Oliphantc8b5a7e2006-01-06 02:12:506arrays. NumPy is built on the Numeric code base and adds features
Travis Oliphantda9c6da2006-01-04 17:31:077introduced by numarray as well as an extended C-API and the ability to
8create arrays of arbitrary type.
9
10There are also basic facilities for discrete fourier transform,
11basic linear algebra and random number generation.
12"""
13
14DOCLINES = __doc__.split("\n")
Pearu Petersonc415fd12002-11-18 22:39:3115
Pearu Petersone8fa0132003-03-07 18:08:2816import os
17import sys
Pearu Petersonc415fd12002-11-18 22:39:3118
Travis Oliphantda9c6da2006-01-04 17:31:0719CLASSIFIERS = """\
20Development Status :: 4 - Beta
21Intended Audience :: Science/Research
22Intended Audience :: Developers
23License :: OSI Approved
24Programming Language :: C
25Programming Language :: Python
26Topic :: Software Development
27Topic :: Scientific/Engineering
28Operating System :: Microsoft :: Windows
29Operating System :: POSIX
30Operating System :: Unix
31Operating System :: MacOS
32"""
33
Pearu Peterson471196b2006-03-31 08:59:3634def configuration(parent_package='',top_path=None):
35 from numpy.distutils.misc_util import Configuration
36
Pearu Peterson17d7cfe2006-04-04 12:26:1437 config = Configuration(None, parent_package, top_path)
Pearu Peterson471196b2006-03-31 08:59:3638 config.set_options(ignore_setup_xxx_py=True,
39 assume_default_configuration=True,
40 delegate_options_to_subpackages=True,
41 quiet=True)
42
43 config.add_subpackage('numpy')
Pearu Peterson17d7cfe2006-04-04 12:26:1444
Pearu Peterson471196b2006-03-31 08:59:3645 config.add_data_files(('numpy',['*.txt','COMPATIBILITY',
46 'scipy_compatibility']))
Pearu Peterson17d7cfe2006-04-04 12:26:1447
48 config.get_version('numpy/version.py') # sets config.version
Pearu Peterson471196b2006-03-31 08:59:3649
50 return config
51
Pearu Petersone8fa0132003-03-07 18:08:2852def setup_package():
Travis Oliphant14db4192005-09-14 22:08:4653
Travis Oliphantda9c6da2006-01-04 17:31:0754 from numpy.distutils.core import setup
Travis Oliphant14db4192005-09-14 22:08:4655
Pearu Petersone8fa0132003-03-07 18:08:2856 old_path = os.getcwd()
Pearu Petersond1906742003-11-24 22:50:4057 local_path = os.path.dirname(os.path.abspath(sys.argv[0]))
58 os.chdir(local_path)
Travis Oliphant14db4192005-09-14 22:08:4659 sys.path.insert(0,local_path)
Pearu Petersone8fa0132003-03-07 18:08:2860
61 try:
Pearu Peterson17d7cfe2006-04-04 12:26:1462 from numpy.version import version
63 setup(
64 name = 'numpy',
65 version = version, # will be overwritten by configuration version
66 maintainer = "NumPy Developers",
67 maintainer_email = "numpy-discussion@lists.sourceforge.net",
68 description = DOCLINES[0],
69 long_description = "\n".join(DOCLINES[2:]),
70 url = "http://numeric.scipy.org",
cookedm2276bf72006-04-21 16:15:1271 download_url = "http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103",
Pearu Peterson17d7cfe2006-04-04 12:26:1472 license = 'BSD',
73 classifiers=filter(None, CLASSIFIERS.split('\n')),
74 author = "Travis E. Oliphant, et.al.",
75 author_email = "oliphant@ee.byu.edu",
76 platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
77 configuration=configuration )
Pearu Petersone8fa0132003-03-07 18:08:2878 finally:
79 del sys.path[0]
80 os.chdir(old_path)
Travis Oliphant14db4192005-09-14 22:08:4681 return
Pearu Petersonc415fd12002-11-18 22:39:3182
Travis Oliphant14db4192005-09-14 22:08:4683if __name__ == '__main__':
Pearu Petersone8fa0132003-03-07 18:08:2884 setup_package()