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 84dbd19 commit 3e47661Copy full SHA for 3e47661
pycross/private/tools/wheel_installer.py
@@ -15,6 +15,15 @@
15
from pycross.private.tools.args import FlagFileArgumentParser
16
17
18
+def remove_pycache_folders(root_dir: str) -> None:
19
+ """
20
+ Recursively delete all __pycache__ directories in the specified directory.
21
22
+ root_path = Path(root_dir)
23
+ for pycache_dir in root_path.rglob("__pycache__"):
24
+ shutil.rmtree(pycache_dir, ignore_errors=True)
25
+
26
27
def setup_namespace_pkg_compatibility(wheel_dir: Path) -> None:
28
"""Converts native namespace packages to pkgutil-style packages
29
@@ -77,6 +86,7 @@ def main(args: Any) -> None:
77
86
)
78
87
finally:
79
88
shutil.rmtree(link_dir, ignore_errors=True)
89
+ remove_pycache_folders(lib_dir)
80
90
81
91
setup_namespace_pkg_compatibility(lib_dir)
82
92
0 commit comments