mirror of https://github.com/explosion/spaCy.git
Fix bad change to cythonize.py script, re subprocess call
This commit is contained in:
parent
ea05f78660
commit
c744ce4b6d
|
@ -56,7 +56,7 @@ def process_pyx(fromfile, tofile):
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
r = subprocess.call(['cython'] + flags + ['-o', tofile, fromfile],
|
r = subprocess.call(['cython'] + flags + ['-o', tofile, fromfile],
|
||||||
shell=True, env=os.environ) # See Issue #791
|
env=os.environ) # See Issue #791
|
||||||
if r != 0:
|
if r != 0:
|
||||||
raise Exception('Cython failed')
|
raise Exception('Cython failed')
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -144,7 +144,7 @@ def generate_cython(root, source):
|
||||||
print('Cythonizing sources')
|
print('Cythonizing sources')
|
||||||
p = subprocess.call([sys.executable,
|
p = subprocess.call([sys.executable,
|
||||||
os.path.join(root, 'bin', 'cythonize.py'),
|
os.path.join(root, 'bin', 'cythonize.py'),
|
||||||
source], shell=True, env=os.environ)
|
source], env=os.environ)
|
||||||
if p != 0:
|
if p != 0:
|
||||||
raise RuntimeError('Running cythonize failed')
|
raise RuntimeError('Running cythonize failed')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue