/
opt
/
imh-python
/
lib
/
python3.9
/
site-packages
/
numpy
/
core
/
tests
/
examples
/
cython
/
/opt/imh-python/lib/python3.9/site-packages/numpy/core/tests/examples/cython
mkdir
upload
Name
Size
Mode
Actions
__pycache__/
-
0755
rm
checks.pyx
615
0644
edit
dl
rm
meson.build
740
0644
edit
dl
rm
setup.py
496
0644
edit
dl
rm
Edit:
/opt/imh-python/lib/python3.9/site-packages/numpy/core/tests/examples/cython/meson.build
(740B)
project('checks', 'c', 'cython') py = import('python').find_installation(pure: false) cc = meson.get_compiler('c') cy = meson.get_compiler('cython') if not cy.version().version_compare('>=0.29.35') error('tests requires Cython >= 0.29.35') endif npy_include_path = run_command(py, [ '-c', 'import os; os.chdir(".."); import numpy; print(os.path.abspath(numpy.get_include()))' ], check: true).stdout().strip() py.extension_module( 'checks', 'checks.pyx', install: false, c_args: [ '-DNPY_NO_DEPRECATED_API=0', # Cython still uses old NumPy C API # Require 1.25+ to test datetime additions '-DNPY_TARGET_VERSION=NPY_2_0_API_VERSION', ], include_directories: [npy_include_path], )
Save
cmd:
run