mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-04 18:20:36 +09:00
Exclude wiringPi.c, odroid_template.c from the C sources for SWIG
This commit is contained in:
6
setup.py
6
setup.py
@@ -11,6 +11,12 @@ from glob import glob
|
|||||||
|
|
||||||
sources = glob('WiringPi/devLib/*.c')
|
sources = glob('WiringPi/devLib/*.c')
|
||||||
sources += glob('WiringPi/wiringPi/*.c')
|
sources += glob('WiringPi/wiringPi/*.c')
|
||||||
|
|
||||||
|
# Exclude wiringPi.c. This setup is only for ODROID WiringPi.
|
||||||
|
sources = list(set(sources) - set(glob('WiringPi/wiringPi/wiringPi.c')))
|
||||||
|
# Exclude template file.
|
||||||
|
sources = list(set(sources) - set(glob('WiringPi/wiringPi/odroid_template.c')))
|
||||||
|
|
||||||
# If we have swig, use it. Otherwise, use the pre-generated
|
# If we have swig, use it. Otherwise, use the pre-generated
|
||||||
# wrapper from the source distribution.
|
# wrapper from the source distribution.
|
||||||
if find_executable('swig'):
|
if find_executable('swig'):
|
||||||
|
|||||||
Reference in New Issue
Block a user