[Numpy-svn] r4447 - branches/numpy.scons/numpy/distutils/scons/core
numpy-svn at scipy.org
numpy-svn at scipy.org
Tue Nov 13 01:30:01 EST 2007
Author: cdavid
Date: 2007-11-13 00:29:57 -0600 (Tue, 13 Nov 2007)
New Revision: 4447
Modified:
branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
Log:
Correct get_build_relative_src to work when src_dir is the empty string
Modified: branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py 2007-11-13 05:30:45 UTC (rev 4446)
+++ branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py 2007-11-13 06:29:57 UTC (rev 4447)
@@ -230,7 +230,9 @@
# the build dir relative to the src_dir: we add n .., where n is the number
# of occureant of the path separator in the src dir.
def get_build_relative_src(srcdir, builddir):
- n = srcdir.count(os.sep) + 1
+ n = srcdir.count(os.sep)
+ if len(srcdir):
+ n += 1
return pjoin(os.sep.join([os.pardir for i in range(n)]), builddir)
sconsign = pjoin(get_build_relative_src(env['src_dir'],
env['build_dir']),
More information about the Numpy-svn
mailing list