From 9161073d57459da13022a28b9ebefb5d719fe3e5 Mon Sep 17 00:00:00 2001 From: neuralassembly Date: Sun, 31 Dec 2023 22:16:20 +0900 Subject: [PATCH 1/2] Changed the submodule --- .gitmodules | 2 +- WiringPi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 1dbeda0..c4a0a0b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "WiringPi"] path = WiringPi - url = https://github.com/wiringPi/WiringPi + url = https://github.com/neuralassembly/WiringPi diff --git a/WiringPi b/WiringPi index e9821ab..cebef4c 160000 --- a/WiringPi +++ b/WiringPi @@ -1 +1 @@ -Subproject commit e9821abdb4b4fe46a2ea9243471d339435fa7bde +Subproject commit cebef4cac7b59fea33a559bce8c014490ccde015 From 0b484997364988b090cf0c10b996b090edb1c10d Mon Sep 17 00:00:00 2001 From: neuralassembly Date: Mon, 1 Jan 2024 00:27:34 +0900 Subject: [PATCH 2/2] Updating the building method --- README.rst | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/README.rst b/README.rst index 855e84a..7f81bbf 100644 --- a/README.rst +++ b/README.rst @@ -120,35 +120,24 @@ Python 2, because then ``buf`` is a string, and strings are immutable). Manual Build ============ -Get/setup repo --------------- - -.. code:: bash - - git clone --recursive https://github.com/WiringPi/WiringPi-Python.git - cd WiringPi-Python - -Don't forget the ``--recursive``; it is required to also pull in the -WiringPi C code from its own repository. - Prerequisites ------------- To rebuild the bindings you **must** first have installed ``swig``, -``python-dev``, and ``python-setuptools`` (or their ``python3-`` -equivalents). WiringPi should also be installed system-wide for access -to the ``gpio`` tool. +``python3-dev``, and ``python3-setuptools``. .. code:: bash - sudo apt-get install python-dev python-setuptools swig wiringpi + sudo apt install python3-dev python3-setuptools swig Build & install with -------------------- -``sudo python setup.py install`` - -Or Python 3: - -``sudo python3 setup.py install`` +.. code:: bash + git clone --recursive https://github.com/neuralpi/WiringPi-Python.git + cd WiringPi-Python/WiringPi + sudo ./build + cd .. + swig -python wiringpi.i + sudo python3 setup.py install