[Python-checkins] CVS: python/dist/src setup.py,1.12,1.13

A.M. Kuchling akuchling@users.sourceforge.net
Tue, 23 Jan 2001 14:21:14 -0800


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv20227

Modified Files:
	setup.py 
Log Message:
Fix for MacOS X/Darwin: it doesn't need -lm, ever.  (Noted by Steven Majewski)


Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** setup.py	2001/01/22 10:38:27	1.12
--- setup.py	2001/01/23 22:21:11	1.13
***************
*** 114,117 ****
--- 114,122 ----
          exts = []
  
+  	# Check for MacOS X, which doesn't need libm.a at all
+  	math_libs = ['m']
+  	if sys.platform == 'Darwin1.2':
+  	    math_libs = []
+ 
          # XXX Omitted modules: gl, pure, dl, SGI-specific modules
  
***************
*** 130,140 ****
          exts.append( Extension('array', ['arraymodule.c']) )
          # complex math library functions
!         exts.append( Extension('cmath', ['cmathmodule.c'], libraries=['m']) )
          # math library functions, e.g. sin()
!         exts.append( Extension('math',  ['mathmodule.c'], libraries=['m']) )
          # fast string operations implemented in C
          exts.append( Extension('strop', ['stropmodule.c']) )
          # time operations and variables
!         exts.append( Extension('time', ['timemodule.c'], libraries=['m']) )
          # operator.add() and similar goodies
          exts.append( Extension('operator', ['operator.c']) )
--- 135,149 ----
          exts.append( Extension('array', ['arraymodule.c']) )
          # complex math library functions
!         exts.append( Extension('cmath', ['cmathmodule.c'],
!                                libraries=math_libs) )
!         
          # math library functions, e.g. sin()
!         exts.append( Extension('math',  ['mathmodule.c'],
!                                libraries=math_libs) )
          # fast string operations implemented in C
          exts.append( Extension('strop', ['stropmodule.c']) )
          # time operations and variables
!         exts.append( Extension('time', ['timemodule.c'],
!                                libraries=math_libs) )
          # operator.add() and similar goodies
          exts.append( Extension('operator', ['operator.c']) )