forked from WiringPi/WiringPi-Python-Deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (43 loc) · 1.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python
from setuptools import setup, find_packages, Extension
wiringpi_module = Extension(
'_wiringpi',
sources=[
'WiringPi/wiringPi/lcd.c',
'WiringPi/wiringPi/piHiPri.c',
'WiringPi/wiringPi/piThread.c',
'WiringPi/wiringPi/wiringPiFace.c',
'wiringpi_wrap.c',
'WiringPi/wiringPi/wiringPi.c',
'WiringPi/wiringPi/wiringSerial.c',
'WiringPi/wiringPi/wiringShift.c',
'WiringPi/wiringPi/wiringPiSPI.c',
'WiringPi/wiringPi/softPwm.c',
'WiringPi/wiringPi/piNes.c',
'WiringPi/wiringPi/gertboard.c'
],
)
setup(
name = 'wiringpi',
version = '1.1.0',
author = "Philip Howard",
author_email = "[email protected]",
url = 'https://github.com/WiringPi/WiringPi-Python/',
description = """A python interface to WiringPi library which allows for
easily interfacing with the GPIO pins of the Raspberry Pi. Also supports
i2c and SPI""",
long_description=open('README').read(),
ext_modules = [wiringpi_module],
py_modules = ["wiringpi"],
install_requires=[],
headers=[
'WiringPi/wiringPi/lcd.h',
'WiringPi/wiringPi/wiringPi.h',
'WiringPi/wiringPi/wiringSerial.h',
'WiringPi/wiringPi/wiringShift.h',
'WiringPi/wiringPi/wiringPiSPI.h',
'WiringPi/wiringPi/softPwm.h',
'WiringPi/wiringPi/piNes.h',
'WiringPi/wiringPi/gertboard.h'
]
)