blob: 9e40f3e4db42f4dc5279d59f6bcbb7876ee099b9 [file] [log] [blame]
#!/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,
extra_link_args=['-lcrypt', '-lrt']
)
setup(
name = 'wiringpi',
version = '2.44',
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')
)