Commit a6bb9c17 authored by Stefan Behnel's avatar Stefan Behnel

fix distutils build

parent 0defa4ed
...@@ -163,8 +163,8 @@ if __name__ == '__main__': ...@@ -163,8 +163,8 @@ if __name__ == '__main__':
parallel_jobs = 0 parallel_jobs = 0
extensions = build_extensions(parallel=parallel_jobs) extensions = build_extensions(parallel=parallel_jobs)
sys_args = ['build_ext', '-i']
if pool is not None: if pool is not None:
sys_args = ['-i']
results = pool.map(_build, [(sys_args, ext) for ext in extensions]) results = pool.map(_build, [(sys_args, ext) for ext in extensions])
pool.close() pool.close()
pool.join() pool.join()
...@@ -172,4 +172,5 @@ if __name__ == '__main__': ...@@ -172,4 +172,5 @@ if __name__ == '__main__':
if not result: if not result:
print("building extension %s failed" % (ext[0].name,)) print("building extension %s failed" % (ext[0].name,))
else: else:
sys.argv[1:] = sys_args
build(extensions) build(extensions)
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