Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r90597:f539adf3c8fd
Date: 2017-03-08 16:29 +0100
http://bitbucket.org/pypy/pypy/changeset/f539adf3c8fd/

Log:    Fix test_venv.test_executable

diff --git a/lib-python/3/venv/__init__.py b/lib-python/3/venv/__init__.py
--- a/lib-python/3/venv/__init__.py
+++ b/lib-python/3/venv/__init__.py
@@ -217,6 +217,17 @@
                     copier(context.env_exe, path, relative_symlinks_ok=True)
                     if not os.path.islink(path):
                         os.chmod(path, 0o755)
+            # PyPy extension: also copy the main library, not just the
+            # small executable
+            for libname in ['libpypy-c.so', 'libpypy-c.dylib']:
+                dest_library = os.path.join(binpath, libname)
+                src_library = os.path.join(os.path.dirname(context.executable),
+                                           libname)
+                if (not os.path.exists(dest_library) and
+                        os.path.exists(src_library)):
+                    copier(src_library, dest_library)
+                    if not os.path.islink(dest_library):
+                        os.chmod(dest_library, 0o755)
         else:
             subdir = 'DLLs'
             include = self.include_binary
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to