Skip to content

Commit 7b882a0

Browse files
author
Jonathon Belotti
committed
reinstate function that was removed in 12bfbdf
1 parent 95e72ce commit 7b882a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/extract_wheels.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import subprocess
55
import sys
66

7-
from src import wheel, namespace_pkgs
7+
from src import wheel, namespace_pkgs, purelib
88

99
BUILD_TEMPLATE = """\
1010
package(default_visibility = ["//visibility:public"])
@@ -71,6 +71,8 @@ def extract_wheel(whl, directory, extras):
7171

7272
whl.unzip(directory)
7373

74+
# Note: Order of operations matters here
75+
purelib.spread_purelib_into_root(directory)
7476
_setup_namespace_pkg_compatibility(directory)
7577

7678
with open(os.path.join(directory, "BUILD"), "w") as f:

0 commit comments

Comments
 (0)