[issue38949] incorrect prefix, exec_prefix in distutils.command.install

2019-12-09 Thread Xavier de Gaye


Xavier de Gaye  added the comment:

get_config_vars() defined in distutils.sysconfig sets 'prefix' and 
'exec_prefix' using sys.prefix (resp. sys.exec_prefix) on non nt platforms so 
there is no problem. Closing the issue as not a bug.

--
resolution:  -> not a bug
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38949] incorrect prefix, exec_prefix in distutils.command.install

2019-12-01 Thread Xavier de Gaye


New submission from Xavier de Gaye :

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.

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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com