Skip to content

Commit

Permalink
Remove Python 2 compatibility
Browse files Browse the repository at this point in the history
I don't have any way of testing that the build works on Python 2, and I
know pathlib doesn't exist there. Probably time to retire it.
  • Loading branch information
waveform80 committed Mar 28, 2024
1 parent b959a17 commit 5e06193
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,7 @@ install: $(ALL)
ifeq ($(DESTDIR),)
ldconfig
endif
@if which python2; then cd PY_RGPIO && python2 setup.py -q install $(PYINSTALLARGS) || echo "*** install of Python2 rgpio.py failed ***"; fi
@if which python3; then cd PY_RGPIO && python3 setup.py -q install $(PYINSTALLARGS) || echo "*** install of Python3 rgpio.py failed ***"; fi
@if which swig; then cd PY_LGPIO && swig -python lgpio.i || echo "*** need swig package to install lgpio.py ***"; fi
@if which swig python2; then \
cd PY_LGPIO && \
python2 setup.py build_ext $(PYBUILDARGS) && \
python2 setup.py -q install $(PYINSTALLARGS) || \
echo "*** install of Python2 lgpio.py failed ***"; \
fi
@if which swig python3; then \
cd PY_LGPIO && \
python3 setup.py build_ext $(PYBUILDARGS) && \
Expand Down
1 change: 0 additions & 1 deletion PY_LGPIO/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
license='unlicense.org',
keywords=['linux', 'sbc', 'gpio',],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
],
ext_modules = [lgpio_module],
Expand Down
1 change: 0 additions & 1 deletion PY_RGPIO/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
py_modules=['rgpio'],
keywords=['linux', 'sbc', 'gpio',],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
]
)
Expand Down

0 comments on commit 5e06193

Please sign in to comment.