Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | from setuptools import setup, find_packages, Extension |
Phil Howard | 60cc642 | 2015-03-11 12:20:54 +0000 | [diff] [blame] | 4 | from glob import glob |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 5 | |
Phil Howard | 3f99ba1 | 2016-02-29 12:12:28 +0000 | [diff] [blame^] | 6 | sources = glob('WiringPi/devLib/*.c') |
| 7 | sources += glob('WiringPi/wiringPi/*.c') |
| 8 | sources += ['wiringpi_wrap.c'] |
| 9 | |
| 10 | sources.remove('WiringPi/devLib/piFaceOld.c') |
| 11 | |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 12 | _wiringpi2 = Extension( |
| 13 | '_wiringpi2', |
Phil Howard | 2204176 | 2014-07-18 11:48:01 +0000 | [diff] [blame] | 14 | include_dirs=['WiringPi/wiringPi','WiringPi/devLib'], |
Phil Howard | 3f99ba1 | 2016-02-29 12:12:28 +0000 | [diff] [blame^] | 15 | sources=sources |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | setup( |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 19 | name = 'wiringpi2', |
Phil Howard | a012c71 | 2016-02-28 12:27:52 +0000 | [diff] [blame] | 20 | version = '1.2.2', |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 21 | author = "Philip Howard", |
| 22 | author_email = "phil@gadgetoid.com", |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 23 | url = 'https://github.com/Gadgetoid/WiringPi2-Python/', |
| 24 | description = """A python interface to WiringPi 2.0 library which allows for |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 25 | easily interfacing with the GPIO pins of the Raspberry Pi. Also supports |
| 26 | i2c and SPI""", |
Phil Howard | a012c71 | 2016-02-28 12:27:52 +0000 | [diff] [blame] | 27 | long_description=open('README.md').read(), |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 28 | ext_modules = [ _wiringpi2 ], |
| 29 | py_modules = ["wiringpi2"], |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 30 | install_requires=[], |
Phil Howard | 60cc642 | 2015-03-11 12:20:54 +0000 | [diff] [blame] | 31 | headers=glob('WiringPi/wiringPi/*.h')+glob('WiringPi/devLib/*.h') |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 32 | ) |