Skip to content

Commit

Permalink
Python: Switch from distutils to setuptools
Browse files Browse the repository at this point in the history
for package creation.
In Python 3.10 and 3.11, distutils will be formally marked as deprecated.
The build environment needs now `python3-setuptools`.

Refs MythTV#392
  • Loading branch information
rcrdnalor committed Nov 8, 2021
1 parent 2634fb3 commit 3670610
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions deb/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Build-Depends: debhelper (>= 10),
python3-requests,
python3-simplejson,
python3-future,
python3-setuptools,
libgl1-mesa-dev | xlibmesa-gl-dev | xlibmesa-dev | libgl-dev,
libdvdread-dev | libdvdread3-dev,
fftw-dev,
Expand Down
1 change: 1 addition & 0 deletions deb/debian/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Build-Depends: debhelper (>= 10),
python3-requests,
python3-simplejson,
python3-future,
python3-setuptools,
libgl1-mesa-dev | xlibmesa-gl-dev | xlibmesa-dev | libgl-dev,
libdvdread-dev | libdvdread3-dev,
fftw-dev,
Expand Down
6 changes: 3 additions & 3 deletions deb/debian/patches/bindings_install_paths.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ Index: mythtv-master/mythtv/bindings/python/Makefile
ifdef INSTALL_ROOT
- ROOT_FLAGS = --root="$(INSTALL_ROOT)"
+ ROOT_FLAGS = --root="$(INSTALL_ROOT)/../libmyth-python"
else
ROOT_FLAGS = --root="/"
endif

REAL_PREFIX = $(PREFIX)
@@ -10,6 +10,7 @@
@@ -12,6 +12,7 @@
PREFIX_FLAGS=--prefix="$(PREFIX)"
endif
endif
Expand Down

0 comments on commit 3670610

Please sign in to comment.