Commit 2302a576 authored by Stefan Behnel's avatar Stefan Behnel

try to fix embedding test in Hudson builds

parent 1d2c5860
...@@ -633,8 +633,12 @@ class EmbedTest(unittest.TestCase): ...@@ -633,8 +633,12 @@ class EmbedTest(unittest.TestCase):
def setUp(self): def setUp(self):
self.old_dir = os.getcwd() self.old_dir = os.getcwd()
os.chdir(self.working_dir) 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( os.system(
"make PYTHON='%s' clean > /dev/null" % sys.executable) "make PYTHON='%s' LIBDIR1='%s' clean > /dev/null" % (sys.executable, libdir))
def tearDown(self): def tearDown(self):
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment