We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b482ae commit a44020fCopy full SHA for a44020f
Lib/rebuildpython.py
@@ -101,8 +101,9 @@ def run_rebuild():
101
102
# Scan sys.path for any more lingering static libs.
103
for path in list(reversed(sys.path)) + extra_scan_dirs:
104
- # Ignore the working directory so we don't grab duplicate stuff.
105
- if path == os.getcwd() or installDir == path or path in installDir:
+ # Ignore the working directory so we don't grab duplicate stuff. Also ignore the pip temp path that is
+ # injected during a pip install.
106
+ if path == os.getcwd() or installDir == path or path in installDir or "pip-install-" in path:
107
continue
108
for file in find_files(
109
path, "*.lib" if platform.system() == "Windows" else "*.a"
0 commit comments