2017-04-11 23:23:59 +01:00
|
|
|
from setuptools import setup, Extension
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
if sys.argv[-1] != '--name':
|
2018-09-08 18:14:11 +01:00
|
|
|
# explode if run on Python 2.7 or Python 3.4 (these should be skipped)
|
2018-09-16 15:31:05 +02:00
|
|
|
if sys.version_info[0:2] == (2, 7):
|
|
|
|
|
raise Exception('Python 2.7 should not be built')
|
2018-09-16 22:49:38 +02:00
|
|
|
if sys.version_info[0:2] == (3, 4):
|
|
|
|
|
raise Exception('Python 3.4 should be skipped')
|
2017-04-11 23:23:59 +01:00
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
name="spam",
|
|
|
|
|
ext_modules=[Extension('spam', sources=['spam.c'])],
|
|
|
|
|
version="0.1.0",
|
|
|
|
|
)
|