Skip to content

Commit

Permalink
migrate setup.py to setuptools and prepare for distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvick committed Aug 18, 2012
1 parent c9d00e4 commit c93dadf
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions setup.py
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=[],
)

0 comments on commit c93dadf

Please sign in to comment.