Package Details: python-pyglet 2.0.17-1

Git Clone URL: https://aur.archlinux.org/pyglet.git (read-only, click to copy)
Package Base: pyglet
Description: A cross-platform windowing and multimedia library for Python
Upstream URL: https://github.com/pyglet/pyglet
Licenses: BSD
Submitter: arojas
Maintainer: konez2k
Last Packager: konez2k
Votes: 0
Popularity: 0.000000
First Submitted: 2023-04-01 10:19 (UTC)
Last Updated: 2024-09-08 17:14 (UTC)

Latest Comments

micwoj92 commented on 2024-07-23 17:33 (UTC)

@konez2k This is not what dreieck meant, you don't need to touch setup.py, just adjust build commands for the package.

diff --git a/PKGBUILD b/PKGBUILD
index 8d8265f..91f4496 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@ arch=('any')
 url="https://github.com/pyglet/pyglet"
 license=('BSD')
 depends=('python' 'glu' 'python-future')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-flit-core' 'python-installer')
 optdepends=('ffmpeg: provides audio&video support'
     'openal: live audio')
 source=("$pkgbase-$pkgver.zip::https://github.com/pyglet/pyglet/archive/refs/tags/v$pkgver.zip")
@@ -26,12 +26,11 @@ prepare() {

 build() {
     cd "$srcdir/$pkgbase-$pkgver"
-    python3 setup.py build
+    python -m build --wheel --no-isolation
 }

 package_python-pyglet() {
-    depends=('python' 'glu' 'python-future')
     cd "$srcdir/$pkgbase-$pkgver"
-    python3 setup.py install --root="$pkgdir" --optimize=1
+    python -m installer --destdir="$pkgdir" dist/*.whl
     install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

konez2k commented on 2024-04-29 18:25 (UTC)

Thanks for the suggestions, @dreieck. I've now prepended the $pkgbase-$pkgver. Unfortunately, I can't modify the setup.py as it depends on the origin.

dreieck commented on 2024-04-28 12:02 (UTC)

Please move away from calling setup.py directly and instead use python -m build and python -m installer (together with the appropriate makedepends), as documented in the Arch Linux wiki for python packages:

==> Starting package_python-pyglet()...
running install
/usr/lib/python3.12/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 or other
        standards-based tools.

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

!!
  self.initialize_options()

Regards and thanks for maintaining!

dreieck commented on 2024-04-28 12:00 (UTC)

Ahoj,

can you please prepend $pkgbase-$pkgver.zip:: to the source entry:

source=("$pkgbase-$pkgver.zip::https://github.com/pyglet/pyglet/archive/refs/tags/v$pkgver.zip")

Reason: When $SRCDEST is set (e.g. in /etc/makepkg.conf), all files will be downloaded into a single directory.
A generic filename like v$pkgver.zip is prone to conflicts (with other packages that also use a generic filename).

Regards and thanks for maintaining!

grmpf44 commented on 2023-11-27 10:40 (UTC)

@MarsSeed Thanks. Updating with yay worked fine and has solved the pamac update loop.

MarsSeed commented on 2023-11-27 10:33 (UTC)

@grmpf44, I've updated this just now, and there's nothing wrong with this installation.

Please kindly report the issue on your end to Manjaro / pamac developers.

Meanwhile I recommend that you use a more mature command-line tool for installation, like yay (also available on Manjaro), or paru.

You can also use the GUI tool octopi, which is also available on Manjaro, and set the latter to work with either yay or paru, to support AUR installations.

grmpf44 commented on 2023-11-27 10:07 (UTC) (edited on 2023-11-27 10:07 (UTC) by grmpf44)

With the recent update (2023-11-27) I am stuck in an update loop.

Build and install appears to succeed, but after closing pamac the update shows up again. There are no obvious errors visible in the output, except for a warning that running "setup.py install" is deprecated.

BryanPG19 commented on 2023-10-11 11:56 (UTC)

I'm getting an error when trying to install python-pyglet.

Failed to prepare transaction.

Failed to generate python-pyglet information