Fix for building new WiringPi from source dist; build simplifications.
diff --git a/setup.py b/setup.py
index 9e40f3e..542a08c 100755
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,17 @@
#!/usr/bin/env python
-from setuptools import setup, find_packages, Extension
+from setuptools import setup, Extension
from glob import glob
sources = glob('WiringPi/devLib/*.c')
sources += glob('WiringPi/wiringPi/*.c')
-sources += ['wiringpi_wrap.c']
+sources += ['wiringpi.i']
-sources.remove('WiringPi/devLib/piFaceOld.c')
+try:
+ sources.remove('WiringPi/devLib/piFaceOld.c')
+except ValueError:
+ # the file is already excluded in the source distribution
+ pass
_wiringpi = Extension(
'_wiringpi',
@@ -18,16 +22,8 @@
setup(
name = 'wiringpi',
- version = '2.44',
- author = "Philip Howard",
- author_email = "phil@gadgetoid.com",
- url = 'https://github.com/WiringPi/WiringPi-Python/',
- description = """A python interface to WiringPi 2.0 library which allows for
- easily interfacing with the GPIO pins of the Raspberry Pi. Also supports
- i2c and SPI""",
- long_description=open('README.md').read(),
+ version = '2.44.2',
ext_modules = [ _wiringpi ],
py_modules = ["wiringpi"],
install_requires=[],
- headers=glob('WiringPi/wiringPi/*.h')+glob('WiringPi/devLib/*.h')
)