allow shorter compiles under python3.5 + VS2015
authorrobin
Thu, 08 Oct 2015 10:47:00 +0100
changeset 49 054a847970b7
parent 48 2d6178b56ddd
child 50 1af7b5eec5f8
allow shorter compiles under python3.5 + VS2015
setup.py
--- a/setup.py	Mon Apr 07 13:48:51 2014 +0100
+++ b/setup.py	Thu Oct 08 10:47:00 2015 +0100
@@ -23,10 +23,15 @@
 	LIBS = []
 	LIBRARIES=[]
 	EXT_MODULES = []
+	EXT_KWARGS = {}
 
 	#building pyRXP
 	if sys.platform=="win32":
 		LIBS=['wsock32']
+		if sys.version_info[:2]==(3,5) and not int(os.environ.get('PYRXP35LONG','0')):
+			EXT_KWARGS['extra_compile_args'] = ['/Od']
+		#EXT_KWARGS['extra_compile_args'] = ['/Zi']
+		#EXT_KWARGS['extra_link_args'] = ['/DEBUG']
 	elif sys.platform=="sunos5":
 		LIBS=['nsl', 'socket', 'dl']
 	elif sys.platform=="aix4":
@@ -51,8 +56,7 @@
 								library_dirs=[],
 								# libraries to link against
 								libraries=LIBS,
-								#uncomment when debugging
-								#extra_compile_args=['/Zi'], extra_link_args=['/DEBUG'],
+								**EXT_KWARGS,
 								),
 					]