| Travis Oliphant | c8b5a7e | 2006-01-06 02:12:50 | [diff] [blame] | 1 | """NumPy: array processing for numbers, strings, records, and objects. |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 2 | |
| Travis Oliphant | c8b5a7e | 2006-01-06 02:12:50 | [diff] [blame] | 3 | NumPy is a general-purpose array-processing package designed to |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 4 | efficiently manipulate large multi-dimensional arrays of arbitrary |
| 5 | records without sacrificing too much speed for small multi-dimensional |
| Travis Oliphant | c8b5a7e | 2006-01-06 02:12:50 | [diff] [blame] | 6 | arrays. NumPy is built on the Numeric code base and adds features |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 7 | introduced by numarray as well as an extended C-API and the ability to |
| 8 | create arrays of arbitrary type. |
| 9 | |
| 10 | There are also basic facilities for discrete fourier transform, |
| 11 | basic linear algebra and random number generation. |
| 12 | """ |
| 13 | |
| 14 | DOCLINES = __doc__.split("\n") |
| Pearu Peterson | c415fd1 | 2002-11-18 22:39:31 | [diff] [blame] | 15 | |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 16 | import os |
| 17 | import sys |
| Pearu Peterson | c415fd1 | 2002-11-18 22:39:31 | [diff] [blame] | 18 | |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 19 | CLASSIFIERS = """\ |
| 20 | Development Status :: 4 - Beta |
| 21 | Intended Audience :: Science/Research |
| 22 | Intended Audience :: Developers |
| 23 | License :: OSI Approved |
| 24 | Programming Language :: C |
| 25 | Programming Language :: Python |
| 26 | Topic :: Software Development |
| 27 | Topic :: Scientific/Engineering |
| 28 | Operating System :: Microsoft :: Windows |
| 29 | Operating System :: POSIX |
| 30 | Operating System :: Unix |
| 31 | Operating System :: MacOS |
| 32 | """ |
| 33 | |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 34 | def setup_package(): |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 35 | |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 36 | from numpy.distutils.core import setup |
| 37 | from numpy.distutils.misc_util import Configuration |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 38 | |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 39 | old_path = os.getcwd() |
| Pearu Peterson | d190674 | 2003-11-24 22:50:40 | [diff] [blame] | 40 | local_path = os.path.dirname(os.path.abspath(sys.argv[0])) |
| 41 | os.chdir(local_path) |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 42 | sys.path.insert(0,local_path) |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 43 | |
| 44 | try: |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 45 | config = Configuration( |
| Travis Oliphant | 3afb449 | 2006-03-13 07:05:41 | [diff] [blame] | 46 | maintainer = "NumPy Developers", |
| 47 | maintainer_email = "numpy-discussion@lists.sourceforge.net", |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 48 | description = DOCLINES[0], |
| 49 | long_description = "\n".join(DOCLINES[2:]), |
| Travis Oliphant | 5a76512 | 2006-01-04 19:30:36 | [diff] [blame] | 50 | url = "http://numeric.scipy.org", |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 51 | download_url = "http://sourceforge.net/projects/numpy", |
| cookedm | 5cf8208 | 2005-12-01 23:17:56 | [diff] [blame] | 52 | license = 'BSD', |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 53 | classifiers=filter(None, CLASSIFIERS.split('\n')), |
| 54 | author = "Travis E. Oliphant, et.al.", |
| 55 | author_email = "oliphant@ee.byu.edu", |
| Pearu Peterson | 39ba8fc | 2006-01-30 21:11:22 | [diff] [blame] | 56 | platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 57 | ) |
| Pearu Peterson | 33279f1 | 2006-01-31 09:22:35 | [diff] [blame] | 58 | config.set_options(ignore_setup_xxx_py=True, |
| 59 | assume_default_configuration=True, |
| 60 | delegate_options_to_subpackages=True, |
| 61 | quiet=True) |
| Pearu Peterson | 39ba8fc | 2006-01-30 21:11:22 | [diff] [blame] | 62 | |
| 63 | config.add_subpackage('numpy') |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 64 | from numpy.version import version |
| 65 | config.name = 'numpy' |
| Pearu Peterson | 682a875 | 2005-10-13 14:57:50 | [diff] [blame] | 66 | config.dict_append(version=version) |
| Pearu Peterson | 39ba8fc | 2006-01-30 21:11:22 | [diff] [blame] | 67 | #print config.name,'version',config.version |
| Pearu Peterson | 682a875 | 2005-10-13 14:57:50 | [diff] [blame] | 68 | |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 69 | setup( **config.todict() ) |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 70 | finally: |
| 71 | del sys.path[0] |
| 72 | os.chdir(old_path) |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 73 | return |
| Pearu Peterson | c415fd1 | 2002-11-18 22:39:31 | [diff] [blame] | 74 | |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 75 | if __name__ == '__main__': |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 76 | setup_package() |