[pypy-commit] pypy py3.6: extend existing horrible hack with more hackiness to copy lib (portable builds)
mattip
pypy.commits at gmail.com
Wed Dec 18 16:34:48 EST 2019
Author: Matti Picus <matti.picus at gmail.com>
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'))
+
More information about the pypy-commit
mailing list