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__ __pycache__
*.pyc *.pyc
wiringpi_wrap.c wiringpi_wrap.c
wiringpi.py odroid_wiringpi.py
.DS_Store .DS_Store
.vscode .vscode

View File

@@ -20,7 +20,7 @@ Quick Install
.. image:: https://badge.fury.io/py/wiringpi.svg .. image:: https://badge.fury.io/py/wiringpi.svg
:alt: PyPI version badge :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: The library is packaged on PyPI and can be installed with pip:

View File

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

View File

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