[issue31114] 'make install' fails when exec_prefix is '/' and DESTDIR not empty

Xavier de Gaye report at bugs.python.org
Sat Aug 5 09:08:49 EDT 2017


Xavier de Gaye added the comment:

In the subprocess test named test_executable_without_cwd and when the test is run on the installed Python, argv[0] is not the python executable and calculate_path() in Modules/getpath.c, as a last resort, searches the directories pointed to by the preprocessor variables PREFIX and EXEC_PREFIX defined in the Makefile. So this test indeed would have failed with the (rejected) proposition made in issue 1676135 to substitute the prefix '/' for '' in the configure script.  But the test would succeed when the substitution replaces '/' with '/./' as proposed here (after Python has effectively been manually installed on '/' of course).

Actually using '/.' instead of '/./' is better since the configure script will remove the trailing slash anyway. In both cases the value of prefix in the sysconfig module is '/.'.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31114>
_______________________________________


More information about the Python-bugs-list mailing list