Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python: Adapt configure and make to use python-pip
Since Pythons Setuptools deprecates the 'setup.py install' sequence, Python PIP will be used on newer python versions as a build frontend implementing the guidline described in PEP 517 (1). Albeit this eliminates the deprecation warning "SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.", it creates other pitfalls because Python is moving towards PEP 688 (2) which clearly describes the ownership of python packages. When doing a 'configure, make, sudo make install' sequence, one will get a warning "WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager." which is true for MythTV. This should remind a user to first uninstall MythTVs packages previously installed by the sytems installation manager. The environemt variable "PIP_ROOT_USER_ACTION=ignore" silences this warning. If a OS distribution protects it's python package by the file 'EXTERNALLY-MANAGED' as described in PEP 688 and the root-flag is not set, pip will not install packages in these locations. The environment variable "PIP_BREAK_SYSTEM_PACKAGES=1" overrides this behaviour. This reminds the operator to better build system-packages and let the standard OS installer know of these packages and install them. (1) https://peps.python.org/pep-0517/ (2) https://peps.python.org/pep-0668/ Refs #731
- Loading branch information
Showing
4 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
build/ | ||
dist/ | ||
*.pyc | ||
*.swo | ||
MythTV.egg-info/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters