[New-bugs-announce] [issue38949] incorrect prefix, exec_prefix in distutils.command.install

Xavier de Gaye report at bugs.python.org
Sun Dec 1 09:01:26 EST 2019

New submission from Xavier de Gaye <xdegaye at gmail.com>:

In function finalize_options() of Lib/distutils/command/install.py at


(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.

components: Distutils
messages: 357678
nosy: dstufft, eric.araujo, xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: incorrect prefix, exec_prefix in distutils.command.install
type: behavior
versions: Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list