[pypy-commit] pypy default: only embed on darwin (backport from py3.6)

mattip pypy.commits at gmail.com
Wed Sep 11 02:05:12 EDT 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r97430:38e941ce6bc8
Date: 2019-09-11 09:04 +0300
http://bitbucket.org/pypy/pypy/changeset/38e941ce6bc8/

Log:	only embed on darwin (backport from py3.6)

diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -350,8 +350,12 @@
         def task_build_cffi_imports(self):
             ''' Use cffi to compile cffi interfaces to modules'''
             filename = os.path.join(pypydir, 'tool', 'build_cffi_imports.py')
+            if sys.platform == 'darwin':
+                argv = [filename, '--embed-dependencies']
+            else:
+                argv = [filename,]
             status, out, err = run_subprocess(str(driver.compute_exe_name()),
-                                              [filename, '--embed-dependencies'])
+                                              argv)
             sys.stdout.write(out)
             sys.stderr.write(err)
             # otherwise, ignore errors


More information about the pypy-commit mailing list