Package Details: python-unicrypto 0.0.10-1

Git Clone URL: https://aur.archlinux.org/python-unicrypto.git (read-only, click to copy)
Package Base: python-unicrypto
Description: Unified interface for cryptographic libraries.
Upstream URL: https://github.com/skelsec/unicrypto
Licenses: MIT
Submitter: tikrass
Maintainer: tikrass
Last Packager: tikrass
Votes: 0
Popularity: 0.000000
First Submitted: 2022-08-17 20:11 (UTC)
Last Updated: 2023-05-07 16:09 (UTC)

Latest Comments

tikrass commented on 2023-05-07 16:11 (UTC)

Thanks @dreieck for the input. I updated the PKGBUILD and the issues should be resolved.

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!