[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread miss-islington
miss-islington added the comment: New changeset dbb37aac1428ddcba784d9ddc77c1708c391aa80 by Miss Islington (bot) in branch '3.8': bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158) https://github.com/python/cpython/commit/dbb37aac1428ddcba784d9ddc77c1708c391aa80

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread Steve Dower
Change by Steve Dower : -- resolution: duplicate -> fixed versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17618 pull_request: https://github.com/python/cpython/pull/18238 ___ Python tracker ___

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread Steve Dower
Steve Dower added the comment: New changeset 0be3246d4f9c8eddcd55491901d95b09fe163f15 by Steve Dower (Adam Meily) in branch 'master': bpo-39439: Fix multiprocessing spawn path in a venv on Windows (GH-18158) https://github.com/python/cpython/commit/0be3246d4f9c8eddcd55491901d95b09fe163f15

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +17617 pull_request: https://github.com/python/cpython/pull/18237 ___ Python tracker ___

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-23 Thread Adam Meily
Change by Adam Meily : -- pull_requests: +17546 pull_request: https://github.com/python/cpython/pull/18159 ___ Python tracker ___

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-23 Thread Adam Meily
Change by Adam Meily : -- pull_requests: +17545 pull_request: https://github.com/python/cpython/pull/18158 ___ Python tracker ___

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-23 Thread Adam Meily
Change by Adam Meily : -- pull_requests: +17544 pull_request: https://github.com/python/cpython/pull/18157 ___ Python tracker ___

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-23 Thread Eryk Sun
Eryk Sun added the comment: > can you confirm that the fix is to just change spawn.get_executable() > to return sys.executable, like it was prior to the PR mentioned in > the other ticket? Yes, in spawn.py, change `_python_exe = sys._base_executable` to `_python_exe = sys.executable`. This

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-23 Thread Adam Meily
Adam Meily added the comment: OK, that makes sense. For 3.7, I can create a PR for that corrects the order of arguments passed into _winapi.CreateProcess For 3.8 / master, the problem appears to be that the check in popen_spawn_win32.py to set the subprocess env is failing because

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-23 Thread Eryk Sun
Eryk Sun added the comment: This is a duplicate of issue 38092. The required change to fix this is very simple, if you want to work on a PR. -- nosy: +eryksun resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> environment variables not passed

[issue39439] Windows Multiprocessing in Virtualenv: sys.prefix is incorrect

2020-01-23 Thread Adam Meily
New submission from Adam Meily : I upgraded from Python 3.7.1 to 3.7.6 and began noticing a behavior that was breaking my code. My code detects if it's running in a virtualenv. This check worked in 3.7.1 but is broken in 3.7.6. >From the documentation, sys.prefix and sys.exec_prefix should