Message351764
setuptools/sandbox.py:
class DirectorySandbox(AbstractSandbox):
"""Restrict operations to a single subdirectory - pseudo-chroot"""
When running user scripts it uses os.path.realpath(os.devnull) to include 'normalized' devnull to the allowed list of files in pseudo-chroot.
Yes, suggested patch returns realpath behavior from 3.7 and packages installs normally.
C:\Users\User\Downloads>py -3.7 -c "import os.path;print(os.path.realpath('nul'))"
\\.\nul
C:\Users\User\Downloads>py -3.8 -c "import os.path;print(os.path.realpath('nul'))"
\\.\nul
I think it must be included in 3.8 or windows users will get installation problems. |
|
Date |
User |
Action |
Args |
2019-09-11 05:59:43 | iamsav | set | recipients:
+ iamsav, paul.moore, tim.golden, zach.ware, eryksun, steve.dower |
2019-09-11 05:59:43 | iamsav | set | messageid: <1568181583.94.0.384008309421.issue38081@roundup.psfhosted.org> |
2019-09-11 05:59:43 | iamsav | link | issue38081 messages |
2019-09-11 05:59:43 | iamsav | create | |
|