try to fix embedding test in Hudson builds
authorStefan Behnel <scoder@users.berlios.de>
Fri, 27 Aug 2010 16:08:06 +0000 (18:08 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 27 Aug 2010 16:08:06 +0000 (18:08 +0200)
runtests.py

index 710ac3b9793fb59e7feaa5b25bb2fbe14ccd2a25..a486405526576e8decb43c4c5782b50954aee9f5 100644 (file)
@@ -633,8 +633,12 @@ class EmbedTest(unittest.TestCase):
     def setUp(self):
         self.old_dir = os.getcwd()
         os.chdir(self.working_dir)
+        from distutils import sysconfig
+        libdir = sysconfig.get_config_var('LIBDIR')
+        if not os.path.isdir(libdir):
+            libdir = os.path.join(os.path.dirname(sys.executable), '../lib')
         os.system(
-            "make PYTHON='%s' clean > /dev/null" % sys.executable)
+            "make PYTHON='%s' LIBDIR1='%s' clean > /dev/null" % (sys.executable, libdir))
     
     def tearDown(self):
         try: