fix DEFINE_MAXROS handling
authorrobin
Tue, 24 Aug 2021 11:27:45 +0100
changeset 95 ca1fbee6a03c
parent 94 026af6b258d6
child 96 1f2be2198067
fix DEFINE_MAXROS handling
setup.py
--- a/setup.py	Tue Aug 24 11:25:25 2021 +0100
+++ b/setup.py	Tue Aug 24 11:27:45 2021 +0100
@@ -42,8 +42,9 @@
 			evv = int(evv)
 		except:
 			pass
-		if os.environ.get(ev,''):
-			DEFINE_MACROS.append((ev,evv))
+		else:
+			if evv:
+				DEFINE_MACROS.append((ev,evv))
 
 	#building pyRXP
 	if sys.platform=="win32":