Author vstinner
Recipients vstinner
Date 2020-05-19.15:00:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589900431.1.0.74204081601.issue40684@roundup.psfhosted.org>
In-reply-to
Content
bpo-1294959 added --with-platlibdir option to configure, but "make install" doesn't fully respect it. Example:

./configure --prefix /opt/py39b1 --with-platlibdir=lib64
make
make install

I get:

/opt/py39b1/lib/python3.9/lib-dynload/readline.cpython-39-x86_64-linux-gnu.so

whereas Python doesn't use this directory:

$ /opt/py39b1/bin/python3.9 -m site
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
sys.path = [
    '/home/vstinner/Python-3.9.0b1',
    '/opt/py39b1/lib64/python39.zip',
    '/opt/py39b1/lib64/python3.9',
    '/opt/py39b1/lib64/lib-dynload',
    '/home/vstinner/.local/lib/python3.9/site-packages',
    '/opt/py39b1/lib64/python3.9/site-packages',
]
USER_BASE: '/home/vstinner/.local' (exists)
USER_SITE: '/home/vstinner/.local/lib/python3.9/site-packages' (exists)
ENABLE_USER_SITE: True


Python looks into /opt/py39b1/lib64/lib-dynload ("lib64")

make install writes into /opt/py39b1/lib/python3.9/lib-dynload/ ("lib")
History
Date User Action Args
2020-05-19 15:00:31vstinnersetrecipients: + vstinner
2020-05-19 15:00:31vstinnersetmessageid: <1589900431.1.0.74204081601.issue40684@roundup.psfhosted.org>
2020-05-19 15:00:31vstinnerlinkissue40684 messages
2020-05-19 15:00:30vstinnercreate