Commit 14f8fc4e authored by Stefan Behnel's avatar Stefan Behnel

typos

parent 463643e2
...@@ -444,19 +444,19 @@ def cythonize(module_list, ctx=None, nthreads=0, aliases=None): ...@@ -444,19 +444,19 @@ def cythonize(module_list, ctx=None, nthreads=0, aliases=None):
print("multiprocessing required for parallel cythonization") print("multiprocessing required for parallel cythonization")
nthreads = 0 nthreads = 0
pool = multiprocessing.Pool(nthreads) pool = multiprocessing.Pool(nthreads)
pool.map(cythonoize_one_helper, to_compile) pool.map(cythonize_one_helper, to_compile)
if not nthreads: if not nthreads:
for priority, pyx_file, c_file in to_compile: for priority, pyx_file, c_file in to_compile:
cythonoize_one(pyx_file, c_file) cythonize_one(pyx_file, c_file)
return module_list return module_list
cython_py = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../cython.py')) cython_py = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../cython.py'))
def cythonoize_one(pyx_file, c_file): def cythonize_one(pyx_file, c_file):
cmd = "%s %s %s -o %s" % (sys.executable, cython_py, pyx_file, c_file) cmd = "%s %s %s -o %s" % (sys.executable, cython_py, pyx_file, c_file)
print(cmd) print(cmd)
if os.system(cmd) != 0: if os.system(cmd) != 0:
raise CompilerError(pyx_file) raise CompilerError(pyx_file)
def cythonoize_one_helper(m): def cythonize_one_helper(m):
return cythonoize_one(*m[1:]) return cythonize_one(*m[1:])
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