File: 0001-prevent-cythonize-failure.patch

package info (click to toggle)
python-thinc 6.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,388 kB
  • sloc: python: 7,120; ansic: 6,257; makefile: 19; sh: 11
file content (16 lines) | stat: -rw-r--r-- 566 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Purpose: prevent cythonization failure.
Forward: No need to forward.
diff --git a/bin/cythonize.py b/bin/cythonize.py
index 6d318d8..ab25fb7 100755
--- a/bin/cythonize.py
+++ b/bin/cythonize.py
@@ -67,7 +67,7 @@ def process_pyx(fromfile, tofile):
 
     try:
         try:
-            r = subprocess.call(['cython'] + flags + ["-o", tofile, fromfile], env=os.environ)
+            r = subprocess.call(['cython3'] + flags + ["-o", tofile, fromfile], env=os.environ)
             if r != 0:
                 raise Exception('Cython failed')
         except OSError: