Skip to content

Commit 216f230

Browse files
committed
Fix site-packages resolution to correctly bundle dependencies inside Windows launcher
1 parent a608caa commit 216f230

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

py2c_windows.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ def python_version() -> str:
6666

6767

6868
def site_packages() -> str:
69-
py = venv_path("python.exe")
70-
out = subprocess.check_output(
71-
[str(py), "-c", "import site; print(site.getsitepackages()[0])"],
72-
text=True,
73-
)
74-
return out.strip()
69+
return str(VENV / "Lib" / "site-packages")
7570

7671

7772
def cython_embed(verbose: bool, mode: str) -> None:

0 commit comments

Comments
 (0)