[Numpy-svn] r4081 - in branches/numpy.scons: . numpy/scons_fake

numpy-svn@scip... numpy-svn@scip...
Sat Sep 22 10:41:05 CDT 2007


Author: cdavid
Date: 2007-09-22 10:40:52 -0500 (Sat, 22 Sep 2007)
New Revision: 4081

Modified:
   branches/numpy.scons/
   branches/numpy.scons/numpy/scons_fake/SConstruct
Log:
Add WIN32 define only for win32 platform


Property changes on: branches/numpy.scons
___________________________________________________________________
Name: bzr:revision-info
   - timestamp: 2007-09-22 23:05:34.460999966 +0900
committer: david <david@david-laptop>
properties: 
	branch-nick: numpy.scons

   + timestamp: 2007-09-23 00:40:07.401000023 +0900
committer: david <david@david-laptop>
properties: 
	branch-nick: numpy.scons

Name: bzr:revision-id:v3-trunk0
   - 3737 david@david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david@david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david@david-laptop-20070920081910-phlk1ujthksgpm0z
3740 david@david-laptop-20070920082641-bdhrt6eafeoli50i
3741 david@ar.media.kyoto-u.ac.jp-20070920130730-satdeppbh1k0bq2p
3743 david@ar.media.kyoto-u.ac.jp-20070921073742-vpv8pwv0j8fbd93m
3744 david@david-laptop-20070922101656-61kfi2faucemr2rl
3745 david@david-laptop-20070922113708-ror18thshang1cpu
3747 david@david-laptop-20070922140534-n9xsl096tjrzmct1

   + 3737 david@david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david@david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david@david-laptop-20070920081910-phlk1ujthksgpm0z
3740 david@david-laptop-20070920082641-bdhrt6eafeoli50i
3741 david@ar.media.kyoto-u.ac.jp-20070920130730-satdeppbh1k0bq2p
3743 david@ar.media.kyoto-u.ac.jp-20070921073742-vpv8pwv0j8fbd93m
3744 david@david-laptop-20070922101656-61kfi2faucemr2rl
3745 david@david-laptop-20070922113708-ror18thshang1cpu
3747 david@david-laptop-20070922140534-n9xsl096tjrzmct1
3749 david@david-laptop-20070922154007-usit009fr6vp377j


Modified: branches/numpy.scons/numpy/scons_fake/SConstruct
===================================================================
--- branches/numpy.scons/numpy/scons_fake/SConstruct	2007-09-22 15:24:00 UTC (rev 4080)
+++ branches/numpy.scons/numpy/scons_fake/SConstruct	2007-09-22 15:40:52 UTC (rev 4081)
@@ -3,11 +3,12 @@
 
 env = GetNumpyEnvironment(ARGUMENTS)
 
-config = env.Configure()
 config.CheckHeader('stdio.h')
 config.CheckLib('c', 'printf')
 config.Finish()
 
 source = ['foo.c']
-env.AppendUnique(CPPDEFINES = 'WIN32')
+import sys
+if sys.platform == 'win32':
+    env.AppendUnique(CPPDEFINES = 'WIN32')
 env.NumpyCTypes('foo', source)



More information about the Numpy-svn mailing list