forked from WiringPi/WiringPi-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·32 lines (27 loc) · 949 Bytes
/
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
#!/usr/bin/env python
from setuptools import setup, find_packages, Extension
from glob import glob
sources = glob('WiringPi/devLib/*.c')
sources += glob('WiringPi/wiringPi/*.c')
sources += ['wiringpi_wrap.c']
sources.remove('WiringPi/devLib/piFaceOld.c')
_wiringpi = Extension(
'_wiringpi',
include_dirs=['WiringPi/wiringPi','WiringPi/devLib'],
sources=sources
)
setup(
name = 'wiringpi',
version = '2.32.1',
author = "Philip Howard",
author_email = "[email protected]",
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(),
ext_modules = [ _wiringpi ],
py_modules = ["wiringpi"],
install_requires=[],
headers=glob('WiringPi/wiringPi/*.h')+glob('WiringPi/devLib/*.h')
)