[Numpy-svn] r4175 - in branches/numpy.scons: . numpy/distutils/scons
numpy-svn at scipy.org
numpy-svn at scipy.org
Thu Oct 11 05:29:23 EDT 2007
Author: cdavid
Date: 2007-10-11 04:29:06 -0500 (Thu, 11 Oct 2007)
New Revision: 4175
Modified:
branches/numpy.scons/
branches/numpy.scons/numpy/distutils/scons/__init__.py
branches/numpy.scons/numpy/distutils/scons/default.py
branches/numpy.scons/numpy/distutils/scons/extension_scons.py
branches/numpy.scons/numpy/distutils/scons/numpyenv.py
Log:
Some code cleaning in distutils/scons
Property changes on: branches/numpy.scons
___________________________________________________________________
Name: bzr:revision-info
- timestamp: 2007-10-11 12:32:41.559999943 +0900
committer: David Cournapeau <david at ar.media.kyoto-u.ac.jp>
properties:
branch-nick: numpy.scons
+ timestamp: 2007-10-11 16:12:51.690999985 +0900
committer: David Cournapeau <david at ar.media.kyoto-u.ac.jp>
properties:
branch-nick: numpy.scons
Name: bzr:file-ids
- numpy/scons_fake/checklib checklib-20071011033204-1grjkgi22nafyjk7-1
numpy/scons_fake/checklib/SConstruct sconstruct-20071011033204-1grjkgi22nafyjk7-2
numpy/scons_fake/checklib/setup.py setup.py-20071011033204-1grjkgi22nafyjk7-4
numpy/scons_fake/checklib/__init__.py __init__.py-20071011033204-1grjkgi22nafyjk7-3
+
Name: bzr:revision-id:v3-trunk0
- 3737 david at david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david at david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david at david-laptop-20070920081910-phlk1ujthksgpm0z
3740 david at david-laptop-20070920082641-bdhrt6eafeoli50i
3741 david at ar.media.kyoto-u.ac.jp-20070920130730-satdeppbh1k0bq2p
3743 david at ar.media.kyoto-u.ac.jp-20070921073742-vpv8pwv0j8fbd93m
3744 david at david-laptop-20070922101656-61kfi2faucemr2rl
3745 david at david-laptop-20070922113708-ror18thshang1cpu
3747 david at david-laptop-20070922140534-n9xsl096tjrzmct1
3749 david at david-laptop-20070922154007-usit009fr6vp377j
3750 david at david-laptop-20070923070011-leu2ozc2fy1q5cht
3751 david at david-laptop-20070924015925-dhsiao40jp7zsfp9
3752 david at ar.media.kyoto-u.ac.jp-20070924070657-nbw23j0ayan30cli
3753 david at ar.media.kyoto-u.ac.jp-20070924082918-i1lc1zikywi8czj4
3754 david at ar.media.kyoto-u.ac.jp-20070924083008-c0edtt8zs31yeh1q
3755 david at ar.media.kyoto-u.ac.jp-20070924112351-pnnho638cohz6lj1
3756 david at david-laptop-20070924153247-yftud00bynilxv69
3757 david at david-laptop-20070924163545-pish34x9fq2h66aj
3758 david at david-laptop-20070924164633-iiyygcaw81ji3n34
3759 david at david-laptop-20070924170201-y14v2yzikdpvamfp
3760 david at david-laptop-20070924171208-5bmitorzf49d1aa2
3761 david at david-laptop-20070925014444-ns9v90gotnxt39mq
3769 david at david-laptop-20070925145952-4osi81tvch7v6luj
3773 david at ar.media.kyoto-u.ac.jp-20070926073429-2kdc6yf1o210aer0
3774 david at ar.media.kyoto-u.ac.jp-20070926084356-938djoytjap90rmo
3775 david at ar.media.kyoto-u.ac.jp-20070926085329-3gquq3gu2k8rgzb0
3776 david at ar.media.kyoto-u.ac.jp-20071009084906-9kradhwpu7su633x
3777 david at ar.media.kyoto-u.ac.jp-20071009093339-q5nf5me6ikdi48k6
3778 david at david-laptop-20071009152108-xh5cltii0h6zjk9b
3779 david at david-laptop-20071009154954-v5se05gbq60opo1z
3780 david at david-laptop-20071009223102-vz2sgf5i6pncxsd8
3781 david at david-laptop-20071009225259-13m6enwqk4w9uihe
3782 david at ar.media.kyoto-u.ac.jp-20071010021710-liz2jvw0ggbxrtgi
3783 david at ar.media.kyoto-u.ac.jp-20071010032218-8qzxvdmith85a056
3784 david at ar.media.kyoto-u.ac.jp-20071010032323-lgbxfd788h402kn0
3792 david at ar.media.kyoto-u.ac.jp-20071011033223-s14976refgeaw00h
3793 david at ar.media.kyoto-u.ac.jp-20071011033241-rrzlo2vu6w0tkdwf
+ 3737 david at david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david at david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david at david-laptop-20070920081910-phlk1ujthksgpm0z
3740 david at david-laptop-20070920082641-bdhrt6eafeoli50i
3741 david at ar.media.kyoto-u.ac.jp-20070920130730-satdeppbh1k0bq2p
3743 david at ar.media.kyoto-u.ac.jp-20070921073742-vpv8pwv0j8fbd93m
3744 david at david-laptop-20070922101656-61kfi2faucemr2rl
3745 david at david-laptop-20070922113708-ror18thshang1cpu
3747 david at david-laptop-20070922140534-n9xsl096tjrzmct1
3749 david at david-laptop-20070922154007-usit009fr6vp377j
3750 david at david-laptop-20070923070011-leu2ozc2fy1q5cht
3751 david at david-laptop-20070924015925-dhsiao40jp7zsfp9
3752 david at ar.media.kyoto-u.ac.jp-20070924070657-nbw23j0ayan30cli
3753 david at ar.media.kyoto-u.ac.jp-20070924082918-i1lc1zikywi8czj4
3754 david at ar.media.kyoto-u.ac.jp-20070924083008-c0edtt8zs31yeh1q
3755 david at ar.media.kyoto-u.ac.jp-20070924112351-pnnho638cohz6lj1
3756 david at david-laptop-20070924153247-yftud00bynilxv69
3757 david at david-laptop-20070924163545-pish34x9fq2h66aj
3758 david at david-laptop-20070924164633-iiyygcaw81ji3n34
3759 david at david-laptop-20070924170201-y14v2yzikdpvamfp
3760 david at david-laptop-20070924171208-5bmitorzf49d1aa2
3761 david at david-laptop-20070925014444-ns9v90gotnxt39mq
3769 david at david-laptop-20070925145952-4osi81tvch7v6luj
3773 david at ar.media.kyoto-u.ac.jp-20070926073429-2kdc6yf1o210aer0
3774 david at ar.media.kyoto-u.ac.jp-20070926084356-938djoytjap90rmo
3775 david at ar.media.kyoto-u.ac.jp-20070926085329-3gquq3gu2k8rgzb0
3776 david at ar.media.kyoto-u.ac.jp-20071009084906-9kradhwpu7su633x
3777 david at ar.media.kyoto-u.ac.jp-20071009093339-q5nf5me6ikdi48k6
3778 david at david-laptop-20071009152108-xh5cltii0h6zjk9b
3779 david at david-laptop-20071009154954-v5se05gbq60opo1z
3780 david at david-laptop-20071009223102-vz2sgf5i6pncxsd8
3781 david at david-laptop-20071009225259-13m6enwqk4w9uihe
3782 david at ar.media.kyoto-u.ac.jp-20071010021710-liz2jvw0ggbxrtgi
3783 david at ar.media.kyoto-u.ac.jp-20071010032218-8qzxvdmith85a056
3784 david at ar.media.kyoto-u.ac.jp-20071010032323-lgbxfd788h402kn0
3792 david at ar.media.kyoto-u.ac.jp-20071011033223-s14976refgeaw00h
3793 david at ar.media.kyoto-u.ac.jp-20071011033241-rrzlo2vu6w0tkdwf
3794 david at ar.media.kyoto-u.ac.jp-20071011071251-c5pxigyynpck262d
Modified: branches/numpy.scons/numpy/distutils/scons/__init__.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/__init__.py 2007-10-11 03:42:34 UTC (rev 4174)
+++ branches/numpy.scons/numpy/distutils/scons/__init__.py 2007-10-11 09:29:06 UTC (rev 4175)
@@ -1,17 +1,2 @@
from numpyenv import GetNumpyEnvironment, GetNumpyOptions
from libinfo_scons import NumpyCheckLib
-
-# XXX: all this should be put in another files eventually once it is getting in
-# shape
-
-def _get_empty(dict, key):
- print "++++++ Deprecated, do not use _get_empty +++++++++"
- try:
- return dict[key]
- except KeyError, e:
- return []
-
-def cfgentry2list(entry):
- """This convert one entry in a section of .cfg file to something usable in
- scons."""
- pass
Modified: branches/numpy.scons/numpy/distutils/scons/default.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/default.py 2007-10-11 03:42:34 UTC (rev 4174)
+++ branches/numpy.scons/numpy/distutils/scons/default.py 2007-10-11 09:29:06 UTC (rev 4175)
@@ -1,3 +1,8 @@
+#! /usr/bin/env python
+# Last Change: Thu Oct 11 04:00 PM 2007 J
+
+# This is a copy of scons/Tools/__init__.py, because scons does not offer any
+# public api for this
def tool_list(platform):
"""platform should be the value returned by enbv['PLATFORM'], not
sys.platform !!!!."""
Modified: branches/numpy.scons/numpy/distutils/scons/extension_scons.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/extension_scons.py 2007-10-11 03:42:34 UTC (rev 4174)
+++ branches/numpy.scons/numpy/distutils/scons/extension_scons.py 2007-10-11 09:29:06 UTC (rev 4175)
@@ -1,5 +1,5 @@
#! /usr/bin/env python
-# Last Change: Thu Oct 11 12:00 PM 2007 J
+# Last Change: Thu Oct 11 03:00 PM 2007 J
# Module for support to build python extension. scons specific code goes here.
import sys
@@ -27,9 +27,6 @@
CPPPATH.append(get_python_inc())
if sys.platform == 'win32':
if built_with_mstools(env):
- # # XXX is the export necessary ? (this seems to work wo)
- # LINKFLAGS += " /EXPORT:init%s " % target[0]
-
# XXX: We add the path where to find python2.5.lib (or any other
# version, of course). This seems to be necessary for MS compilers.
env.AppendUnique(LIBPATH = get_pythonlib_dir())
@@ -39,6 +36,6 @@
# Use LoadableModule because of Mac OS X
wrap = env.LoadableModule(target, source, SHLIBPREFIX = '',
- LDMODULESUFFIX = "$PYEXTSUFFIX", LINKFLAGS = LINKFLAGS,
+ LDMODULESUFFIX = '$PYEXTSUFFIX', LINKFLAGS = LINKFLAGS,
CPPPATH = CPPPATH, *args, **kw)
return wrap
Modified: branches/numpy.scons/numpy/distutils/scons/numpyenv.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/numpyenv.py 2007-10-11 03:42:34 UTC (rev 4174)
+++ branches/numpy.scons/numpy/distutils/scons/numpyenv.py 2007-10-11 09:29:06 UTC (rev 4175)
@@ -69,6 +69,9 @@
opts = GetNumpyOptions(args)
# Get the python extension suffix
+ # XXX this should be defined somewhere else. Is there a way to reliably get
+ # all the necessary informations specific to python extensions (linkflags,
+ # etc...) dynamically ?
pyextsuffix = get_config_vars('SO')
# We set tools to an empty list, to be sure that the custom options are
More information about the Numpy-svn
mailing list