From 2302a576cb57ce089cf7fc3378a83451b6fbc541 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 27 Aug 2010 18:08:06 +0200 Subject: [PATCH] try to fix embedding test in Hudson builds --- runtests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 710ac3b9..a4864055 100644 --- a/runtests.py +++ b/runtests.py @@ -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: -- 2.26.2