Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r98317:0b647f05b74f
Date: 2019-12-18 16:43 +0200
http://bitbucket.org/pypy/pypy/changeset/0b647f05b74f/
Log: extend existing horrible hack with more hackiness to copy lib
(portable builds)
diff --git a/lib-python/3/subprocess.py b/lib-python/3/subprocess.py
--- a/lib-python/3/subprocess.py
+++ b/lib-python/3/subprocess.py
@@ -1657,3 +1657,9 @@
src_library = os.path.join(src_dir, libname)
if os.path.exists(src_library):
caller.f_globals['copyfile'](src_library, dest_library)
+ src_lib = os.path.join(src_dir, '../lib')
+ if os.path.exists(src_lib):
+ # portable build
+ import shutil
+ shutil.copytree(src_lib, os.path.join(dest_dir, '../lib'))
+
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit