[mythtv-commits] [MythTV/mythtv] ac9eb1: Python: Switch from distutils to setuptools

rcrdnalor noreply at github.com
Mon Nov 8 17:57:31 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: ac9eb1972e25ddef11d22e1e10967fb62fb502e9
      https://github.com/MythTV/mythtv/commit/ac9eb1972e25ddef11d22e1e10967fb62fb502e9
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M mythtv/bindings/python/Makefile
    A mythtv/bindings/python/setup.cfg
    M mythtv/bindings/python/setup.py

  Log Message:
  -----------
  Python: Switch from distutils to setuptools

for package creation.

In Python 3.10 and 3.11, distutils will be formally marked as deprecated.
See https://www.python.org/dev/peps/pep-0632/
Albeit setuptools uses distutils internally, this will continue to work
in the future, because setuptools includes its own version of distutils.
See https://setuptools.pypa.io/en/latest/deprecated/index.html
Tested on python 3.6+.

Note: Each distribution patches heavily setuptools and distutils, the
package maintainers should check correctness of the new builds.

Although python PEP 518 proposes a new format to specify the build system
for python packages (pyproject.toml), this is not fully implemented in
python3.6 and can't be used.

Fixes #392


  Commit: 439d582ad1b539d6c2ddfdec76874edb0bebf5f1
      https://github.com/MythTV/mythtv/commit/439d582ad1b539d6c2ddfdec76874edb0bebf5f1
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M mythtv/bindings/python/setup.cfg

  Log Message:
  -----------
  Python: Remove 'install_requires' section

from 'setup.cfg' because it is not handled correctly by various
package managers, like Ubuntu. Only the last item is displayed.
Better no information than partial partial information.
Note: The package dependencies for 'libmyth-python' is handled
correctly by other means within each distribution, therefore
no information is lost.

Refs #392


  Commit: 4029c13ea5b4cf9a25fd8c4964373b9c5edc7ba5
      https://github.com/MythTV/mythtv/commit/4029c13ea5b4cf9a25fd8c4964373b9c5edc7ba5
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M mythtv/bindings/python/Makefile

  Log Message:
  -----------
  Python: Provide default root directory for installation

if not given by make environment

Refs #392


Compare: https://github.com/MythTV/mythtv/compare/ebbed972f290...4029c13ea5b4


More information about the mythtv-commits mailing list