Skip to content

Commit 26d4fbe

Browse files
author
stonebig
committed
pywin32 wheel patch
1 parent 5e13230 commit 26d4fbe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

winpython/wppm.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,14 @@ def install(self, package, install_options=None):
370370
if tmp_fname is not None:
371371
os.remove(tmp_fname)
372372

373+
# We minimal post-install pywin (pywin32_postinstall.py do too much)
374+
if package.name == "pywin32":
375+
origin = self.target + (r"\Lib\site-packages\pywin32_system32")
376+
destin = self.target
377+
for name in os.listdir(origin):
378+
print("shutil.copy ", osp.join(origin, name), " ", osp.join(destin, name))
379+
shutil.copyfile(osp.join(origin, name), osp.join(destin, name))
380+
373381
# We patch pip live (around line 100) !!!!
374382
# rational: https://github.com/pypa/pip/issues/2328
375383
if package.name == "get-pip":

0 commit comments

Comments
 (0)