Open
Description
Bug report
Bug description:
According to the Modules/Setup
file, it told me to uncomment the appropriate lines to make the module built-in, so i uncomment module, here is my Modules/Setup
file modify:
...
#math mathmodule.c
math mathmodule.c
...
Then i clear the build dir and re-run the comand rm -rf build && mkdir build && cd build && ../configure && make
, after compiling, i executed the self-compiled python interpreter and i found that the math module is still dynamic loading not built-in.
╰─$ ../configure > ./configure_output.txt
maksetup: 'math' was handled by previous rule.
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
─$ make > make_output.txt
...
╰─$ ./python
Python 3.13.0a6+ (heads/3.10-dirty:6078f2033ea, Apr 18 2024, 13:08:00) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> print(math)
<module 'math' from '/home/timeplus/ssd/gitdownload/cpython/build/build/lib.linux-x86_64-3.13/math.cpython-313-x86_64-linux-gnu.so'>
>>>
I tried in branch 3.10
, it works well, but in the latest main branch, it can't work, is it a bug? or i need some other operation to make it work?
FYI, here is the configure output and make output:
configure_output.txt
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux