mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-09 20:44:23 +09:00
Prepare for PIP distribution
Signed-off-by: Yang Deokgyu <secugyu@gmail.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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
|
||||||
@@ -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:
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
10
setup.py
10
setup.py
@@ -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},
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
%module wiringpi
|
%module odroid_wiringpi
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
|
|||||||
Reference in New Issue
Block a user