-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate setup.py to setuptools and prepare for distribution
- Loading branch information
Showing
1 changed file
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
#!/usr/bin/env python | ||
|
||
from distutils.core import setup, Extension | ||
from setuptools import setup, Extension | ||
|
||
wiringpi_module = Extension('_wiringpi', | ||
sources=['wiringpi_wrap.c', 'WiringPi/wiringPi/wiringPi.c', 'WiringPi/wiringPi/serial.c', 'WiringPi/wiringPi/wiringShift.c'], | ||
) | ||
wiringpi_module = Extension( | ||
'_wiringpi', | ||
sources=[ | ||
'wiringpi_wrap.c', | ||
'WiringPi/wiringPi/wiringPi.c', | ||
'WiringPi/wiringPi/serial.c', | ||
'WiringPi/wiringPi/wiringShift.c' | ||
], | ||
) | ||
|
||
setup (name = 'wiringpi', | ||
version = '1.0', | ||
author = "Philip Howard", | ||
description = """WiringPi for Python""", | ||
ext_modules = [wiringpi_module], | ||
py_modules = ["wiringpi"], | ||
) | ||
setup( | ||
name = 'wiringpi', | ||
version = '1.0', | ||
author = "Philip Howard", | ||
packages = ["wiringpi"], | ||
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.md').read(), | ||
ext_modules = [wiringpi_module], | ||
install_requires=[], | ||
) |