This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients dstufft, eric.araujo, iamale, r.david.murray, vstinner
Date 2019-04-18.14:13:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555596819.38.0.397206182.issue28552@roundup.psfhosted.org>
In-reply-to
Content
This issue can be reproduced with:

diff --git a/Lib/site.py b/Lib/site.py
index ad1146332b..c850109c19 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -638,3 +638,5 @@ def _script():
 
 if __name__ == '__main__':
     _script()
+
+sys.executable = None

Attached PR 12875 fix distutils.sysconfig and the distutils build command if sys.executable is None or an empty string. I don't expect that everything works magically, but at least, it's possible to run "./python -m distutils.sysconfig" and use "make" in Python which runs "./python -E ./setup.py build". I'm surprised, but setup.py is able to build C extensions using sys.executable = None :-)

I made a similar fix for sysconfig in bpo-7774: commit 171ba0504aa778d81346ea56fc9000b29d4d3e1d.
History
Date User Action Args
2019-04-18 14:13:39vstinnersetrecipients: + vstinner, eric.araujo, r.david.murray, dstufft, iamale
2019-04-18 14:13:39vstinnersetmessageid: <1555596819.38.0.397206182.issue28552@roundup.psfhosted.org>
2019-04-18 14:13:39vstinnerlinkissue28552 messages
2019-04-18 14:13:39vstinnercreate