]> git.proxmox.com Git - mirror_zfs.git/commit
Python3: replace `distutils` with `sysconfig`
authorDamian Szuberski <szuberskidamian@gmail.com>
Mon, 28 Nov 2022 19:39:41 +0000 (05:39 +1000)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2022 19:39:41 +0000 (11:39 -0800)
commit387109364e66468736000a57e071cdfff8328ff6
tree4ea032bcfb499e5a03c2bed01fd02880f6e5e5b9
parent5f45e3f699091e257941c2a5c37d8a65d91cd3a9
Python3: replace `distutils` with `sysconfig`

- `distutils` module is long time deprecated and already deleted
  from the CPython mainline.

- To remain compatible with Debian/Ubuntu Python3 packaging style,
  try
  `distutils.sysconfig.get_python_path(0,0)`
  first with fallback on
  `sysconfig.get_path('purelib')`

- pyzfs_unittest suite is run unconditionally as a part of ZTS.

- Add pyzfs_unittest suite to sanity tests.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #12833
Closes #13280
Closes #14177
config/ax_python_devel.m4
rpm/generic/zfs.spec.in
tests/runfiles/sanity.run
tests/test-runner/bin/zts-report.py.in
tests/zfs-tests/tests/functional/pyzfs/pyzfs_unittest.ksh.in