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 | |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 6 | _wiringpi2 = Extension( |
| 7 | '_wiringpi2', |
Phil Howard | 2204176 | 2014-07-18 11:48:01 +0000 | [diff] [blame] | 8 | include_dirs=['WiringPi/wiringPi','WiringPi/devLib'], |
Phil Howard | 60cc642 | 2015-03-11 12:20:54 +0000 | [diff] [blame^] | 9 | sources=glob('WiringPi/devLib/*.c')+glob('WiringPi/wiringPi/*.c')+['wiringpi_wrap.c'] |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 10 | ) |
| 11 | |
| 12 | setup( |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 13 | name = 'wiringpi2', |
Phil Howard | 60cc642 | 2015-03-11 12:20:54 +0000 | [diff] [blame^] | 14 | version = '1.1.1', |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 15 | author = "Philip Howard", |
| 16 | author_email = "phil@gadgetoid.com", |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 17 | url = 'https://github.com/Gadgetoid/WiringPi2-Python/', |
| 18 | description = """A python interface to WiringPi 2.0 library which allows for |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 19 | easily interfacing with the GPIO pins of the Raspberry Pi. Also supports |
| 20 | i2c and SPI""", |
Philip Howard | 97a4f51 | 2013-04-07 11:06:20 +0000 | [diff] [blame] | 21 | long_description=open('README').read(), |
Philip Howard | 2215ad3 | 2013-03-27 23:04:22 +0000 | [diff] [blame] | 22 | ext_modules = [ _wiringpi2 ], |
| 23 | py_modules = ["wiringpi2"], |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 24 | install_requires=[], |
Phil Howard | 60cc642 | 2015-03-11 12:20:54 +0000 | [diff] [blame^] | 25 | headers=glob('WiringPi/wiringPi/*.h')+glob('WiringPi/devLib/*.h') |
Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 26 | ) |