This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2017-02-24.12:46:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>

I compiled Python 3.7 using PGO+LTO with "make && make install", but it seems like it lacks the _sysconfigdata module.

Moreover, I don't see any "Makefile" file in the installed directory, so the "~/installed/3.7/bin/python3  -S -m sysconfig --generate-posix-vars" command fails on trying to import _sysconfigdata_m_linux_x86_64-linux-gnu ...                  

$ find /home/haypo/installed/3.7 -name "Makefile"

Is it correct to use "make && make install" using PGO?

cd ~/cpython
make distclean ||:
./configure --enable-optimizations --with-lto --prefix=/home/haypo/installed/3.7
make clean
make install

haypo@speed-python$ ~/installed/3.7/bin/python3 
Failed to import the site module
Traceback (most recent call last):
  File "/home/haypo/installed/3.7/lib/python3.7/", line 544, in <module>
  File "/home/haypo/installed/3.7/lib/python3.7/", line 530, in main
    known_paths = addusersitepackages(known_paths)
  File "/home/haypo/installed/3.7/lib/python3.7/", line 282, in addusersitepackages
    user_site = getusersitepackages()
  File "/home/haypo/installed/3.7/lib/python3.7/", line 258, in getusersitepackages
    user_base = getuserbase() # this will also set USER_BASE
  File "/home/haypo/installed/3.7/lib/python3.7/", line 248, in getuserbase
    USER_BASE = get_config_var('userbase')
  File "/home/haypo/installed/3.7/lib/python3.7/", line 601, in get_config_var
    return get_config_vars().get(name)
  File "/home/haypo/installed/3.7/lib/python3.7/", line 550, in get_config_vars
  File "/home/haypo/installed/3.7/lib/python3.7/", line 421, in _init_posix
    _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named '_sysconfigdata_m_linux_x86_64-linux-gnu'
Date User Action Args
2017-02-24 12:46:45vstinnersetrecipients: + vstinner
2017-02-24 12:46:45vstinnersetmessageid: <>
2017-02-24 12:46:45vstinnerlinkissue29641 messages
2017-02-24 12:46:44vstinnercreate