Package Details: python-asn1tools 0.167.0-1

Git Clone URL: https://aur.archlinux.org/python-asn1tools.git (read-only, click to copy)
Package Base: python-asn1tools
Description: A Python package for ASN.1 parsing, encoding and decoding
Upstream URL: https://github.com/eerimoq/asn1tools.git
Keywords: asn.1 asn1
Licenses: MIT
Submitter: hurufu
Maintainer: hurufu (Xeonacid)
Last Packager: hurufu
Votes: 2
Popularity: 0.008257
First Submitted: 2021-02-12 18:15 (UTC)
Last Updated: 2024-12-08 22:42 (UTC)

Latest Comments

« First ‹ Previous 1 2

dreieck commented on 2023-05-07 16:47 (UTC)

Applying the patch fails for me:

==> Starting prepare()...
/home/felics/.cache/yay/python-asn1tools/PKGBUILD: line 32: ../00-handle-odd-numbered-hex-strings.patch: No such file or directory
==> ERROR: A failure occurred in prepare().

Changing the patch line solves it:

patch -p1 -d asn1tools-$pkgver < "${srcdir}/00-handle-odd-numbered-hex-strings.patch"

dreieck commented on 2023-05-07 16:47 (UTC)

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!