| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Ref gh-18138, which has a confusing situation where the
correct version seems installed but this check still raises.
|
| |
|
|
|
| |
Updated with f-strings for better readability
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|
|
|
| |
This is needed for the latest fixes for Python 3.8.
|
|\
| |
| | |
BLD: remove generated Cython files from sdist
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Relates to #11483
|
|
|
|
| |
Before, we did the worst of both worlds, checking the version of one then calling the other.
|
|
|
|
| |
Run it using python -m cython, which works fine even on 0.19
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Refactors the randint helpers to use a Tempita
template. This will reduce technical debt in the
long run.
|
| |
|
|
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.
|