summaryrefslogtreecommitdiff
path: root/tools/cythonize.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.