mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2025-12-19 01:28:43 +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__
|
||||
*.pyc
|
||||
wiringpi_wrap.c
|
||||
wiringpi.py
|
||||
odroid_wiringpi.py
|
||||
.DS_Store
|
||||
.vscode
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
10
setup.py
10
setup.py
@@ -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},
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%module wiringpi
|
||||
%module odroid_wiringpi
|
||||
|
||||
%{
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
|
||||
Reference in New Issue
Block a user