summaryrefslogtreecommitdiff
path: root/tools/cythonize.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: remove redundant open() modes and io.open() aliasMike Taves2022-10-291-5/+5
|
* Remove incorrect comment about checking generated C files inWilliam Stein2022-09-081-4/+0
| | | Evidently the decision was made at some point not to do what Dag suggests in the documentation of this file. So delete that suggestion, which conflicts with reality. I agree with not checking in the C files, and think Cython isn't an unreasonable dependency for building from git. Also, cython is clearly stated to be a build dependency here: https://github.com/numpy/numpy/blob/main/INSTALL.rst#id9
* MAINT: Replace LooseVersion by _pep440.Charles Harris2022-02-051-27/+2
| | | | | | | | LooseVersion is provided by Python distutils, which is going away in 3.12. This PR vendors _pep440 from scipy and uses it as a replacement. Numpy distutils is not touched, replacing LooseVersion in that package was considered too risky, and numpy distutils will need to go away when Python distutils does.
* MAINT: Use SHA-256 instead of SHA-1Nikola Forró2021-09-161-5/+5
| | | | | | | | | While the use of SHA-1 here hardly poses any risks, its use will eventually be prohibited globally in FIPS-compliant operating systems such as RHEL, and I don't see any downsides in moving away from using it. Signed-off-by: Nikola Forró <nforro@redhat.com>
* MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-021-6/+0
|
* MAINT: Update Cython version for Python 3.10.Charles Harris2021-08-101-1/+2
| | | | | | Update the required Cython version to 0.29.24 for Python 3.10 compatibility. The 0.29.22 version might work, but taking the time to find the oldest working version is not worth the trouble.
* change to suitable raise from and add line breaks #2Anthony Vo2021-04-061-3/+3
|
* change to suitable raise from and add line breaksAnthony Vo2021-04-061-1/+2
|
* chain exceptions when appropriateAnthony Vo2021-04-051-1/+1
|
* BLD: add found Cython version to check in cythonize.pyRalf Gommers2021-01-111-1/+4
| | | | | Ref gh-18138, which has a confusing situation where the correct version seems installed but this check still raises.
* BLD: update cython to 0.29.21mattip2020-07-101-2/+2
|
* Updated cythonize.py with f-stringsXavier Thomas2020-01-241-4/+3
| | | Updated with f-strings for better readability
* 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: Update required cython version to 0.29.14.Charles Harris2019-12-231-2/+2
| | | | This is needed for the latest fixes for Python 3.8.
* Merge pull request #14453 from rgommers/no-cython-in-sdistCharles Harris2019-09-081-0/+1
|\ | | | | BLD: remove generated Cython files from sdist
| * BLD: remove generated Cython files from sdistRalf Gommers2019-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rationale: it has happened multiple times in the recent past that users needed to use a more recent Cython than was used to generate the sdist of the most recent release available on PyPI (e.g. for building with a not-yet-released version of Python for which a Cython fix just landed). The dependency specification and packaging tools have matured to the point where it should be fine to require Cython to be installed. Also, we have wheels (and conda-forge packages) for Windows, Linux and macOS, so this change won't be visible at all to the average user. Closes gh-13790 Also adds pyproject.toml to MANIFEST.in, it was missing.
* | MAINT: Only allow using Cython module when cythonizing.Charles Harris2019-09-021-7/+4
|/ | | | | | | | | The command line version of `cython` may point to a different installation of Cython than that installed in the Python running the cythonize script. Because the Cython version can be critical, requiring that the cython used comes from a known place makes it less likely that the wrong version will be used. This treats Cython as a build dependency rather than a free standing compiler.
* BLD: Update RELEASE_WALKTHROUGH and cythonize.Charles Harris2019-09-011-9/+6
| | | | | | Make it less likely that the wrong cython version is used for building or cythonizing NumPy. This is motivated by the upcoming Python 3.8 release that requires the cython 0.29.13 as of 3.8.0b4.
* BUILD: move files out of _randomgenmattip2019-05-201-33/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | first cut at building randomgen upgrade 'cythonize' and fix absolute imports to relative define NPY_NO_DEPRECATED_API and fix other warnings enable pgc64 by always using PCG_EMULATED_MATH refactor so import randomgen works add TODO comments for pcg64 improvements fix imports, module name in setup.py; remove _testing make cythonize non-recursive, restore examples to proper place update to randomgen 7bca296c0b9 replace mtrand with LegacyGenerator, tweak for compatibility port f879ef4 to fix GH10839 minimized difference between generator.pyx and _legacy.pyx fix namespace in doctests, mark results that are random update to randomgen commit 95c8cdd1c Incorporate testing of edge cases into main tests Rename test files to describe their purpose Import import locations to reflect numpy paths Correct tolerance on float32 tests Remove set_printoptions Remove complex normal Remove future imports Pull in BasicRNG source changes from original author Small doc fixes _mtrand => _rand Improve consistency of nan handling Prevent nans prducing values from int functions add randomgen documentation to the tree
* BUG: Increase required cython version on python 3.7Eric Wieser2018-07-291-2/+12
| | | | Relates to #11483
* Prefer the same-python cython to the on-PATH cythonEric Wieser2018-07-051-20/+16
| | | | Before, we did the worst of both worlds, checking the version of one then calling the other.
* MAINT: Use a simpler invocation of cythonEric Wieser2018-07-041-4/+2
| | | | Run it using python -m cython, which works fine even on 0.19
* DOC: Correct issue referenceEric Wieser2018-07-041-1/+1
|
* ENH: Vendorize tempita.Charles Harris2016-09-301-16/+4
| | | | | | | | | | | Copy tempita from https://github.com/gjhiggins/tempita with a few changes to remove the six dependency. This removes a dependency on Cython's tempita, which is not to be relied on as it is considered by the Cython folks to be an implementation detail. The package is named npy_tempita so that it can always be distinguished from an installed tempita. The cythonize.py script is changed to use the vendorized tempita.
* MAINT: Add Tempita to randint helpersgfyoung2016-09-201-12/+45
| | | | | | Refactors the randint helpers to use a Tempita template. This will reduce technical debt in the long run.
* BUG: Assert fromfile ending earlier in pyx processinggfyoung2016-09-191-1/+1
|
* BLD: remove cython c source from gitJulian Taylor2014-04-051-0/+199
Instead generate at build time. The generated sources are still part of the sdist. tools/cythonize.py is copied from SciPy with small changes to the configuration.