Prepare for PIP distribution

Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
This commit is contained in:
Yang Deokgyu
2019-09-04 11:29:11 +09:00
parent 6e3ed1f27c
commit dd1946761c
5 changed files with 12 additions and 12 deletions

2
.gitignore vendored
View File

@@ -4,6 +4,6 @@ dist/
__pycache__
*.pyc
wiringpi_wrap.c
wiringpi.py
odroid_wiringpi.py
.DS_Store
.vscode

View File

@@ -20,7 +20,7 @@ Quick Install
.. image:: https://badge.fury.io/py/wiringpi.svg
:alt: PyPI version badge
:target: https://pypi.org/project/wiringpi/
:target: https://pypi.org/project/odroid-wiringpi/
The library is packaged on PyPI and can be installed with pip:

View File

@@ -1,7 +1,7 @@
[metadata]
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.
author= Yang Deokgyu
author_email= secugyu@gmail.com
url= https://github.com/hardkernel/WiringPi2-Python
description= A Port of WiringPi Python project for ODROID boards
long_description = file:README.rst
license = LGPL

View File

@@ -56,8 +56,8 @@ class sdist_ext_first(sdist):
return sdist.run(self)
_wiringpi = Extension(
'_wiringpi',
_odroid_wiringpi = Extension(
'_odroid_wiringpi',
include_dirs=['WiringPi/wiringPi','WiringPi/devLib'],
sources=sources,
swig_opts=['-threads'],
@@ -65,10 +65,10 @@ _wiringpi = Extension(
)
setup(
name = 'wiringpi',
name = 'odroid_wiringpi',
version = '2.44.4.0',
ext_modules = [ _wiringpi ],
py_modules = ["wiringpi"],
ext_modules = [ _odroid_wiringpi ],
py_modules = ["odroid_wiringpi"],
install_requires=[],
cmdclass = {'build_py' : build_py_ext_first, 'sdist' : sdist_ext_first},
)

View File

@@ -1,4 +1,4 @@
%module wiringpi
%module odroid_wiringpi
%{
#if PY_MAJOR_VERSION >= 3