[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: I fixed the bug in Python 2.7, 3.7 and master branch (future 3.8). Thanks Alexander P for the bug report ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3076a3e0d1c54a2a6cc54c84521cd0f640d7cffb by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12948) https://github.com/python/cpython/commit/3076a3e0d1c54a2a6cc54c

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f4edd39017a211d4544570a1e2ac2110ef8e51b4 by Victor Stinner in branch '2.7': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) (GH-12949) https://github.com/python/cpython/commit/f4edd39017a211d4544570a1e2ac2110ef8e51b4 --

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12874 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12872 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28552] Distutils fail if sys.executable is None

2019-04-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0ef8c157e9195df0115c54ba875a5efb92ac22fb by Victor Stinner in branch 'master': bpo-28552: Fix distutils.sysconfig for empty sys.executable (GH-12875) https://github.com/python/cpython/commit/0ef8c157e9195df0115c54ba875a5efb92ac22fb --

[issue28552] Distutils fail if sys.executable is None

2019-04-18 Thread STINNER Victor
STINNER Victor added the comment: 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

[issue28552] Distutils fail if sys.executable is None

2019-04-18 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12799 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue28552] Distutils fail if sys.executable is None

2016-10-29 Thread Donald Stufft
Donald Stufft added the comment: We re-execute Python to run setup.py. Even from wheels we do it to compile pyc files. Sent from my iPhone > On Oct 29, 2016, at 2:38 PM, R. David Murray wrote: > > > R. David Murray added the comment: > > Yes, you are right; I was thinking that distutils a

[issue28552] Distutils fail if sys.executable is None

2016-10-29 Thread R. David Murray
R. David Murray added the comment: Yes, you are right; I was thinking that distutils and/or pip re-executed python for certain tasks, but upon reflection I don't think they do. -- stage: -> needs patch ___ Python tracker

[issue28552] Distutils fail if sys.executable is None

2016-10-29 Thread Alexander P
Alexander P added the comment: Well, project_base (which is what sys.executable is used for) is used only during build (i. e. python_build is True), if I understand it correctly. Normally, sys.prefix and sys.exec_prefix are used for all the paths. Also, project_base can be explicitly set using

[issue28552] Distutils fail if sys.executable is None

2016-10-28 Thread R. David Murray
R. David Murray added the comment: I'm not sure it is reasonable to expect distutils to work if sys.executable is not valid. What do you think distutils could do instead? -- nosy: +r.david.murray ___ Python tracker

[issue28552] Distutils fail if sys.executable is None

2016-10-28 Thread Alexander P
New submission from Alexander P: For example, Jython 2.7. When we try to execute `jython-standalone -m pip`, distutils.sysconfig tries to parse sys.executable as a path and obviously fails: Traceback (most recent call last): File "/home/ale/dev/3toj/jython-standalone-2.7.0.jar/Lib/run