STINNER Victor <vstin...@python.org> added the comment:
"./configure --enable-shared --prefix /opt/py310 && make && make install" installs multiple files which are only useful to create a static Python binary: $ ls /opt/py310/lib/python3.10/config-3.10-x86_64-linux-gnu/ -1 config.c config.c.in install-sh* libpython3.10.a Makefile makesetup* __pycache__/ python-config.py* python.o Setup Setup.local $ ls /opt/py310/lib/ -1 libpython3.10.so@ libpython3.10.so.1.0* libpython3.so* pkgconfig/ python3.10/ libpython3.10.a is a big file: 15 MB. Without --enable-shared, /opt/py310/lib/ contains a second copy of libpython3.10.a! Example with the Ubuntu libpython3.6-dev package: $ dpkg -L libpython3.6-dev|grep config- /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/Makefile /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/Setup /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/Setup.config /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/Setup.local /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/config.c /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/config.c.in /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/install-sh /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m-pic.a /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/makesetup /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/python-config.py /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/python.o --- By the way, it seems like many files of /opt/py310/lib/python3.10/config-3.10-x86_64-linux-gnu/ are useless. The most useful one is python-config.py script. Makefile is no longer used by sysconfig which creates _sysconfigdata__linux_x86_64-linux-gnu.py (in /opt/py310/lib/python3.10/) instead. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43103> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com