]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/python/test/SConscript
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / python / test / SConscript
index ee41547f417905ec269d48c0eb2545099a2e9012..eaeefaca891d758291ac785af465e91d779d2581 100644 (file)
@@ -8,9 +8,18 @@
 # http://www.boost.org/LICENSE_1_0.txt)
 
 import platform
+import sys
 
 Import('env')
 
+if sys.platform == 'win32':
+    # HACK: This works around a bug in SCons.
+    #       subprocess.check_output will complain unless all environment
+    #       variables are strings.
+    system_root = env['ENV']['SystemRoot']
+    env['ENV']['SystemRoot'] = str(system_root)
+
+
 # libs needed for embedding
 ELIBS=env['LIBS'] + env['PYTHONLIBS']
 
@@ -107,7 +116,7 @@ else:
 test = env.BoostRunPythonScript('test_builtin_converters.py')
 Depends(
     test,
-    env.PythonExtension('builtin_converters_ext', ['test_builtin_converters.cpp'])
+    env.PythonExtension('builtin_converters_ext', ['builtin_converters.cpp'])
     )
 tests+=test
 test = env.BoostRunPythonScript('map_indexing_suite.py')