corrected as per notations from @YannickJadoul on #113

This commit is contained in:
unknown
2018-11-29 02:44:19 +00:00
parent c4822ebdd6
commit 3d23cbf2a6
6 changed files with 62 additions and 0 deletions
+6
View File
@@ -1,6 +1,12 @@
from setuptools import setup, Extension
import sys
# explode if run on Python 2.7 or Python 3.4 (these should be skipped)
if sys.version_info[0:2] == (2, 7):
raise Exception('Python 2.7 should not be built')
if sys.version_info[0:2] == (3, 4):
raise Exception('Python 3.4 should be skipped')
setup(
name="spam",
ext_modules=[Extension('spam', sources=['spam.c'])],