| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 1 | """Numpy: array processing for numbers, strings, records, and objects. |
| 2 | |
| 3 | Numpy is a general-purpose array-processing package designed to |
| 4 | efficiently manipulate large multi-dimensional arrays of arbitrary |
| 5 | records without sacrificing too much speed for small multi-dimensional |
| 6 | arrays. Numpy is built on the Numeric code base and adds features |
| 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 | 8ac222e | 2005-09-26 19:01:50 | [diff] [blame] | 46 | maintainer = "SciPy Developers", |
| Travis Oliphant | 5a76512 | 2006-01-04 19:30:36 | [diff] [blame] | 47 | maintainer_email = "scipy-dev@scipy.org", |
| 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", |
| 56 | platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"] |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 57 | ) |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 58 | config.add_subpackage('numpy') |
| Pearu Peterson | 682a875 | 2005-10-13 14:57:50 | [diff] [blame] | 59 | |
| Travis Oliphant | da9c6da | 2006-01-04 17:31:07 | [diff] [blame] | 60 | from numpy.version import version |
| 61 | config.name = 'numpy' |
| Pearu Peterson | 682a875 | 2005-10-13 14:57:50 | [diff] [blame] | 62 | config.dict_append(version=version) |
| 63 | |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 64 | print config.name,'version',config.version |
| Pearu Peterson | 682a875 | 2005-10-13 14:57:50 | [diff] [blame] | 65 | |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 66 | setup( **config.todict() ) |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 67 | finally: |
| 68 | del sys.path[0] |
| 69 | os.chdir(old_path) |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 70 | return |
| Pearu Peterson | c415fd1 | 2002-11-18 22:39:31 | [diff] [blame] | 71 | |
| Travis Oliphant | 14db419 | 2005-09-14 22:08:46 | [diff] [blame] | 72 | if __name__ == '__main__': |
| Pearu Peterson | e8fa013 | 2003-03-07 18:08:28 | [diff] [blame] | 73 | setup_package() |