[pypy-commit] pypy default: Complain early if we attempt a non-incminimark translation with the cpyext module

arigo pypy.commits at gmail.com
Sat Nov 26 15:10:48 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r88678:a18ed4af9a2d
Date: 2016-11-26 21:10 +0100
http://bitbucket.org/pypy/pypy/changeset/a18ed4af9a2d/

Log:	Complain early if we attempt a non-incminimark translation with the
	cpyext module

diff --git a/pypy/goal/targetpypystandalone.py b/pypy/goal/targetpypystandalone.py
--- a/pypy/goal/targetpypystandalone.py
+++ b/pypy/goal/targetpypystandalone.py
@@ -298,6 +298,12 @@
         if config.translation.sandbox:
             config.objspace.lonepycfiles = False
 
+        if config.objspace.usemodules.cpyext:
+            if config.translation.gc != 'incminimark':
+                raise Exception("The 'cpyext' module requires the 'incminimark'"
+                                " GC.  You need either 'targetpypystandalone.py"
+                                " --withoutmod-cpyext' or '--gc=incminimark'")
+
         config.translating = True
 
         import translate


More information about the pypy-commit mailing list