Thanks, your latest commit works for a successful local `make`. And I can build a module using Cython now. But failed when doing `<path-to-python> -m pip install .` I guess that's somewhat not supported for building wheel?
```
$ ~/workspace/cpython/python -m pip install .
[...]
File "/tmp/pip-build-env-04iufxmt/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
~~~~~~~~~~~~~~~~^^^^^
File "/tmp/pip-build-env-04iufxmt/overlay/lib/python3.13/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/tmp/pip-build-env-04iufxmt/overlay/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File "/tmp/pip-build-env-04iufxmt/overlay/lib/python3.13/site-packages/wheel/bdist_wheel.py", line 405, in run
impl_tag, abi_tag, plat_tag = self.get_tag()
~~~~~~~~~~~~^^
File "/tmp/pip-build-env-04iufxmt/overlay/lib/python3.13/site-packages/wheel/bdist_wheel.py", line 355, in get_tag
tag in supported_tags
AssertionError: would build wheel with unsupported tag ('cp313', 'cp313t', 'linux_x86_64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Cython
Failed to build Cython
ERROR: Could not build wheels for Cython, which is required to install pyproject.toml-based projects
WARNING: There was an error checking the latest version of pip.
```
Another problem is, when I try to install NumPy from source with the Cython I just built, it shows:
```
$ rm -rf build; ~/workspace/cpython/python -m pip install .
[...]
numpy/random/_pcg64.cpython-313t-x86_64-linux-gnu.so.p/numpy/random/_pcg64.pyx.c: In function ‘__Pyx_ParseOptionalKeywords’:
numpy/random/_pcg64.cpython-313t-x86_64-linux-gnu.so.p/numpy/random/_pcg64.pyx.c:10774:25: error: ‘CYTHON_METH_FASTCALL’ undeclared (first use in this function); did you mean ‘METH_FASTCALL’?
10774 | int kwds_is_tuple = CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds));
| ^~~~~~~~~~~~~~~~~~~~
| METH_FASTCALL
numpy/random/_pcg64.cpython-313t-x86_64-linux-gnu.so.p/numpy/random/_pcg64.pyx.c:10774:25: note: each undeclared identifier is reported only once for each function it appears in
numpy/random/_pcg64.cpython-313t-x86_64-linux-gnu.so.p/numpy/random/_pcg64.pyx.c: In function ‘__Pyx_CheckKeywordStrings’:
numpy/random/_pcg64.cpython-313t-x86_64-linux-gnu.so.p/numpy/random/_pcg64.pyx.c:11463:9: error: ‘CYTHON_METH_FASTCALL’ undeclared (first use in this function); did you mean ‘METH_FASTCALL’?
11463 | if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kw))) {
| ^~~~~~~~~~~~~~~~~~~~
| METH_FASTCALL
[...]
[470/504] Compiling C object numpy/_core/lib_simd.dispatch.h_AVX2.a.p/meson-generated__simd.dispatch.c.o
[471/504] Compiling C object numpy/_core/lib_simd.dispatch.h_FMA3__AVX2.a.p/meson-generated__simd.dispatch.c.o
[472/504] Compiling C object numpy/_core/libloops_autovec.dispatch.h_AVX2.a.p/meson-generated_loops_autovec.dispatch.c.o
[473/504] Compiling C object numpy/_core/lib_simd.dispatch.h_AVX512_SKX.a.p/meson-generated__simd.dispatch.c.o
[474/504] Compiling C object numpy/_core/lib_simd.dispatch.h_AVX512F.a.p/meson-generated__simd.dispatch.c.o
ninja: build stopped: subcommand failed.
[end of output]
```
I'm confused about this issue since I already made sure NumPy recognizes the correct Cython I just built (~/.local/bin/cython):
#!/home/lyuze/workspace/cpython/python
# -*- coding: utf-8 -*-
import re
import sys
sys.path.append('/home/lyuze/workspace/cython')
from Cython.Compiler.Main import setuptools_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(setuptools_main())