You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
949 B
33 lines
949 B
#!/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 = "phil@gadgetoid.com",
|
|
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')
|
|
)
|