Skip to content

Commit 27f0a85

Browse files
committed
generate clinic files
1 parent 950773c commit 27f0a85

File tree

3 files changed

+8
-4476
lines changed

3 files changed

+8
-4476
lines changed

setup.py

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
import sys
44
import platform
5+
import subprocess
6+
7+
if sys.version_info[0] == 3 and sys.version_info[1] == 6:
8+
subprocess.run(["python", "shared_numpy/py36_clinic.py", "shared_numpy/posixshmem.c"])
9+
elif sys.version_info[0] == 3 and sys.version_info[1] == 7:
10+
subprocess.run(["python", "shared_numpy/py37_clinic.py", "shared_numpy/posixshmem.c"])
11+
else:
12+
raise ValueError("Must run on Python 3.6 or 3.7")
513

614

715
linux_module = Extension(

0 commit comments

Comments
 (0)