mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-08 01:50:27 +09:00
Fix for building new WiringPi from source dist; build simplifications.
This commit is contained in:
20
setup.py
20
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 @@ _wiringpi = Extension(
|
||||
|
||||
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')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user