Changeset: e0c399e0ea4c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e0c399e0ea4c
Modified Files:
NT/winconfig.py
testing/Mtest.py.in
Branch: Oct2014
Log Message:
Use correct substitution values.
diffs (67 lines):
diff --git a/NT/winconfig.py b/NT/winconfig.py
--- a/NT/winconfig.py
+++ b/NT/winconfig.py
@@ -61,8 +61,11 @@ while len(sys.argv) > 2 and '=' in sys.a
subs.append(('@SOURCE@',
os.path.abspath(os.path.dirname(os.path.dirname(sys.argv[0])))))
for key, val in subs[:]:
+ # X prefix for execution-time value
subs.insert(0, ('@X'+key[1:], val))
+ # Q prefix for quoted value (i.e. \ needs to be scaped)
subs.insert(0, ('@Q'+key[1:], val.replace('\\', r'\\')))
+ # QX prefix for quoted execution-time value
subs.insert(0, ('@QX'+key[1:], val.replace('\\', r'\\')))
def substitute(line):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -128,7 +128,7 @@ except ImportError:
try:
import MonetDBtesting.process as process
except ImportError:
- p = _configure(os.path.join('@QXprefix@', '@PYTHON2_LIBDIR@'))
+ p = _configure(os.path.join('@QXprefix@', '@QXPYTHON2_LIBDIR@'))
sys.path.insert(0, p)
import MonetDBtesting.process as process
if os.environ.has_key('PYTHONPATH'):
@@ -262,7 +262,7 @@ except ImportError:
try:
from MonetDBtesting import monet_options
except ImportError:
- p = _configure(os.path.join('@QXprefix@', '@PYTHON2_LIBDIR@'))
+ p = _configure(os.path.join('@QXprefix@', '@QXPYTHON2_LIBDIR@'))
sys.path.insert(0, p)
from MonetDBtesting import monet_options
if os.environ.has_key('PYTHONPATH'):
@@ -1174,10 +1174,10 @@ def PerformDir(env, testdir, testlist, B
os.environ['TSTSRCDIR'] = TSTSRCDIR
os.environ['TSTTRGDIR'] = TSTTRGDIR
os.environ['RELSRCDIR'] = env['RELSRCDIR']
- os.environ['PYTHON2'] = '@PYTHON2@'
- os.environ['PYTHON2PATH'] = _configure(os.path.join('@QXprefix@',
'@PYTHON2_LIBDIR@'))
- os.environ['PYTHON3'] = '@PYTHON3@'
- os.environ['PYTHON3PATH'] = _configure(os.path.join('@QXprefix@',
'@PYTHON3_LIBDIR@'))
+ os.environ['PYTHON2'] = '@QXPYTHON2@'
+ os.environ['PYTHON2PATH'] = _configure(os.path.join('@QXprefix@',
'@QXPYTHON2_LIBDIR@'))
+ os.environ['PYTHON3'] = '@QXPYTHON3@'
+ os.environ['PYTHON3PATH'] = _configure(os.path.join('@QXprefix@',
'@QXPYTHON3_LIBDIR@'))
if os.name == 'nt':
os.environ['PYTHON2PATH'] += os.path.pathsep +
_configure(os.path.join('@QXprefix@', 'lib', 'python2'))
os.environ['PYTHON3PATH'] += os.path.pathsep +
_configure(os.path.join('@QXprefix@', 'lib', 'python3'))
@@ -3750,11 +3750,11 @@ def main(argv) :
#STDOUT.flush()
# inject vars that tell various languages where to find their libs
- env['PERL5LIB'] = _configure(os.path.join('@QXprefix@', '@PERL_LIBDIR@'))
+ env['PERL5LIB'] = _configure(os.path.join('@QXprefix@', '@QXPERL_LIBDIR@'))
# set dynamically for python test lib
-# env['PYTHONPATH'] = _configure(os.path.join('@QXprefix@',
'@PYTHON2_LIBDIR@'))
- env['PHP_INCPATH'] = _configure(os.path.join('@datadir@', 'php'))
- env['BINDIR'] = _configure('@bindir@')
+# env['PYTHONPATH'] = _configure(os.path.join('@QXprefix@',
'@QXPYTHON2_LIBDIR@'))
+ env['PHP_INCPATH'] = _configure(os.path.join('@QXdatadir@', 'php'))
+ env['BINDIR'] = _configure('@QXbindir@')
vars_ = vars_ + ['PERL5LIB', 'PHP_INCPATH', 'BINDIR']
# export and display env
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list