classification
Title: incorrect prefix, exec_prefix in distutils.command.install
Type: behavior Stage: needs patch
Components: Distutils Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: dstufft, eric.araujo, xdegaye
Priority: normal Keywords:

Created on 2019-12-01 14:01 by xdegaye, last changed 2019-12-01 14:01 by xdegaye.

Messages (1)
msg357678 - (view) Author: Xavier de Gaye (xdegaye) * (Python triager) Date: 2019-12-01 14:01
In function finalize_options() of Lib/distutils/command/install.py at

https://github.com/python/cpython/blob/575d0b46d122292ca6e0576a91265d7abf7cbc3d/Lib/distutils/command/install.py#L284

(prefix, exec_prefix) is set using get_config_vars(). This may be incorrect when Python has been manually copied in another location from the location where it has been installed with 'make install'. We should use sys.prefix and sy.exec_prefix instead, those values are calculated by getpath.c instead of being retrieved from the sysconfigdata module.
History
Date User Action Args
2019-12-01 14:01:26xdegayecreate