Package Details: python-minikerberos 0.4.4-1

Git Clone URL: https://aur.archlinux.org/python-minikerberos.git (read-only, click to copy)
Package Base: python-minikerberos
Description: Kerberos manipulation library in pure Python
Upstream URL: https://pypi.org/project/minikerberos
Keywords: kerberos krb library python
Licenses: MIT
Submitter: GI_Jack
Maintainer: GI_Jack
Last Packager: GI_Jack
Votes: 0
Popularity: 0.000000
First Submitted: 2020-06-27 14:39 (UTC)
Last Updated: 2024-05-12 22:09 (UTC)

Latest Comments

dreieck commented on 2023-05-14 19:36 (UTC)

Installs generically named files

  • /usr/lib/python3.11/site-packages/tests/__init__.py
  • /usr/lib/python3.11/site-packages/tests/config.py
  • /usr/lib/python3.11/site-packages/tests/[...]
  • /usr/lib/python3.11/site-packages/tests/__pycache__/__init__.cpython-311.pyc
  • /usr/lib/python3.11/site-packages/tests/__pycache__/[...]

and thus is prone to lead to conflicts:

python-minikerberos: /usr/lib/python3.11/site-packages/tests/__init__.py exists in filesystem (owned by python-aiowinreg)
python-minikerberos: /usr/lib/python3.11/site-packages/tests/__pycache__/__init__.cpython-311.opt-1.pyc exists in filesystem (owned by python-aiowinreg)
python-minikerberos: /usr/lib/python3.11/site-packages/tests/__pycache__/__init__.cpython-311.pyc exists in filesystem (owned by python-aiowinreg)
python-minikerberos: /usr/lib/python3.11/site-packages/tests/__pycache__/test_version.cpython-311.opt-1.pyc exists in filesystem (owned by python-aiowinreg)
python-minikerberos: /usr/lib/python3.11/site-packages/tests/__pycache__/test_version.cpython-311.pyc exists in filesystem (owned by python-aiowinreg)
python-minikerberos: /usr/lib/python3.11/site-packages/tests/test_version.py exists in filesystem (owned by python-aiowinreg)
Errors occurred, no packages were upgraded.

Please make sure that those generically named files are not installed.

Thanks for maintaining!

dreieck commented on 2023-05-07 15:18 (UTC) (edited on 2023-05-07 15:19 (UTC) by dreieck)

I think you should switch to using python -m build and python -m installer instead of invoking setup.py directly:

/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer, pypa/build or
        other standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!

e.g. (just the idea, not tested with your package):

[...]
makedepends=(
  'python-build'
  'python-installer'
  'python-wheel'
  'python-setuptools'
  [...]
)
[...]
build() {
  [...]
  python -m build --wheel --no-isolation
  # maybe build documentation, ...
  [...]
}

package() {
  [...]
  python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
  [...]
  # Maybe install documentation, license, ...
  [...]
}

Regards!