mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-24682 Explicitly remove helpers directory from the sys.path in packaging_tool.py
As a workaround for the pip's issue #4216 and setuptools' #885.
This commit is contained in:
@@ -161,6 +161,14 @@ def mkdtemp_ifneeded():
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
# As a workaround for #885 in setuptools, don't expose other helpers
|
||||
# in sys.path so as not no confuse it with possible combination of
|
||||
# namespace/ordinary packages
|
||||
sys.path.remove(os.path.dirname(__file__))
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
retcode = 0
|
||||
try:
|
||||
if len(sys.argv) < 2:
|
||||
|
||||
Reference in New Issue
Block a user