summaryrefslogtreecommitdiff
path: root/numpy/setup.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: make `_utils` a full moduleSebastian Berg2022-11-251-0/+1
|
* MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-0/+1
| | | | i.e. `numpy.typing` and `numpy._typing`
* ENH: add hook and test for PyInstaller.bwoodsend2022-01-201-0/+1
| | | | | | | | Adding this special hook file tells PyInstaller what files a self contained NumPy application needs to run. A test is included to verify that the hook still finds all necessary files. Closes #17184.
* Rename numpy._array_api to numpy.array_apiAaron Meurer2021-08-041-1/+1
| | | | | | | Instead of the leading underscore, the experimentalness of the module will be indicated by omitting a warning on import. That we, we do not have to change the API from underscore to no underscore when the module is no longer experimental.
* Make the _array_api submodule install correctlyAaron Meurer2021-07-151-0/+1
|
* MAINT: make typing module available at runtimeJosh Wilson2020-06-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Closes https://github.com/numpy/numpy/issues/16550. This makes `np.typing.ArrayLike` and `np.typing.DtypeLike` available at runtime in addition to typing time. Some things to consider: - `ArrayLike` uses protocols, which are only in the standard library in 3.8+, but are backported in `typing_extensions`. This conditionally imports `Protocol` and sets `_SupportsArray` to `Any` at runtime if the module is not available to prevent NumPy from having a hard dependency on `typing_extensions`. Since e.g. mypy already includes `typing_extensions` as a dependency, anybody actually doing type checking will have it set correctly. - We are starting to hit the edges of "the fiction of the stubs". In particular, they could just cram everything into `__init__.pyi` and ignore the real structure of NumPy. But now that typing is available a runtime, we have to e.g. carefully import `ndarray` from `numpy` in the typing module and not from `..core.multiarray`, because otherwise mypy will think you are talking about a different ndarray. We will probably need to do some shuffling the stubs into more fitting locations to mitigate weirdness like this.
* ENH: add type stubs from numpy-stubsJosh Wilson2020-06-061-0/+2
| | | | | | | | | | | | | | | | | | | | | Add the type stubs and tests from numpy-stubs. Things this entails: - Copy over the stubs (numpy/__init__.pyi and numpy/core/_internal.pyi) - The only modification made was removing `ndarray.tostring` since it is deprecated - Update some setup.py files to include pyi files - Move the tests from numpy-stubs/tests into numpy/tests - Skip them if mypy is not installed (planning on setting up CI in a future PR) - Add a mypy.ini; use it to configure mypy in the tests - It tells mypy where to find NumPy in the test env - It ignores internal NumPy type errors (since we only want to consider errors from the tests cases) - Some small edits were made to fix test cases that were emitting deprecation warnings - Add numpy/py.typed so that the types are picked up in an installed version of NumPy
* Mark tests as a subpackage rather than data.Hameer Abbasi2020-05-061-1/+1
|
* convert shebang from python to python3 (#15687)Changqing Li2020-03-041-1/+1
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* MAINT: Remove references to Bento.Charles Harris2015-08-291-1/+0
| | | | | Bento builds are no longer supported, so remove references to that built system.
* BLD: Move numpy.build_utils -> numpy._build_utils, add to MANIFEST.inAlex Willmer2015-08-051-1/+0
| | | | | This fixes the distutils built from an sdist (e.g. under tox), without including _build_utils in binary distributions or the installed numpy.
* MAINT: List subpackages alphabetically in numpy.setup.configuration()Alex Willmer2015-08-041-6/+6
| | | | The intention is to make it easier to spot missing items
* BLD: fix tests under Tox, include numpy.build_utils in the distributionAlex Willmer2015-08-041-0/+3
| | | | | | | | | | | The sub-package is already included in bento builds, it appears to have been missed from distutils. This fixes the following error whilst running any tests with tox ``` ImportError: No module named build_utils.apple_accelerate ```
* DEP, MAINT: Remove references to numeric and numarray.Charles Harris2013-09-231-2/+0
| | | | | This covers those locations that either import or build numarray or numeric.
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-1/+1
| | | | | | | Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* Fix print statements in numpy.distutils.environmentDavid Cournapeau2009-12-031-1/+1
|
* Add support for chebyshev series and polynomials.Charles Harris2009-11-141-0/+1
| | | | | | | | | | | | | | | | New modules chebyshev and polynomial are added. The new polynomial module is not compatible with the current polynomial support in numpy, but is much like the new chebyshev module. The most noticeable difference to most will be that coefficients are specified from low to high power, that the low level functions do *not* accept the Chebyshev and Polynomial classes as arguements, and that the Chebyshev and Polynomial classes include a domain. Mapping between domains is a linear substitution and the two classes can be converted one to the other, allowing, for instance, a Chebyshev series in one domain to be expanded as a polynomial in another domain. The new modules are not automatically imported into the numpy namespace, they must be explicitly brought in with a "import numpy.polynomial" statement.
* ENH: move inspect copy into newly created compat module.David Cournapeau2009-10-131-0/+1
|
* Rename matrx to matrixlib.David Cournapeau2009-09-181-1/+1
| | | | | I forgot to commit the name change suggested by Stefan. You need to clean build/install directory when updating to this version.
* Move matrix class into its own module.David Cournapeau2009-09-161-0/+1
|
* Remove doc/reference from setup.Stefan van der Walt2008-08-241-1/+0
|
* Add numpy.doc topical documentation framework.Stefan van der Walt2008-07-091-0/+2
|
* Move ma to numpy root. Fix unit tests. Remove references to numpy.core.ma.Stefan van der Walt2007-12-151-0/+1
|
* numpy/setup.py shouldn't be run as a scriptcookedm2007-05-281-8/+1
|
* Remove dft from build.Travis Oliphant2006-09-201-1/+0
|
* Fix Python 2.5 compatibility to work with new b3 releaseTravis Oliphant2006-08-141-0/+1
|
* Many name-changes in oldnumeric. This may break some numpy code that was ↵Travis Oliphant2006-08-041-0/+1
| | | | using the oldnumeric interface.
* Fix-up C-API support for numarrayTravis Oliphant2006-06-201-1/+1
|
* Adding numarray C-APITravis Oliphant2006-06-201-0/+1
|
* Check-in name-space changes so that numpy.oldnumeric is the compatibility ↵Travis Oliphant2006-06-121-0/+1
| | | | module and numpy does not contain all of the names.
* Remove cwd from sys.path when running numpy/setup.py script.Pearu Peterson2006-04-201-1/+2
|
* Fix version machinery and pkg information requests.Pearu Peterson2006-04-041-4/+2
|
* Removed pkgload from numpy - all imports can be done explicitly.Pearu Peterson2006-01-051-1/+1
|
* Change most setup.py filesTravis Oliphant2006-01-041-7/+8
|
* Moved scipy directory to numpyTravis Oliphant2006-01-041-0/+26