setup.py
changeset 104 e61305acbc68
parent 95 ca1fbee6a03c
child 105 09dc95e69ad4
--- a/setup.py	Sun Aug 29 10:08:48 2021 +0100
+++ b/setup.py	Mon Aug 30 12:08:55 2021 +0100
@@ -35,16 +35,16 @@
 	LIBRARIES=[]
 	EXT_MODULES = []
 	EXT_KWARGS = {}
-	DEFINE_MACROS=[('CHAR_SIZE', 16)]
-	for ev in ('DEBUG_INPUT',):
+	DEFINE_MACROS=dict(CHAR_SIZE=16, MULTIPHASE_INIT=1)
+	for ev in ('DEBUG_INPUT','MULTIPHASE_INIT'):
 		evv = os.environ.get(ev,'')
 		try:
 			evv = int(evv)
 		except:
 			pass
 		else:
-			if evv:
-				DEFINE_MACROS.append((ev,evv))
+			DEFINE_MACROS[ev] = evv
+	DEFINE_MACROS = list(DEFINE_MACROS.items())
 
 	#building pyRXP
 	if sys.platform=="win32":