Package Details: python-pyglet 2.1.0-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: 2025-01-14 10:46 (UTC)

Latest Comments

1 2 Next › Last »

Vekhir commented on 2024-12-23 00:03 (UTC)

python-future has been removed from the official repos because it fails with Python 3.13+. After checking, I don't think that python-pyglet requires it anyway, so it can be removed.

bossi commented on 2024-11-08 01:03 (UTC) (edited on 2024-11-08 01:05 (UTC) by bossi)

Hi there,

I just ran into a build conflict attempting to install 2.0.18: python-flit-core was quoted as an unmet dependency. Installing the package manually and then setting it to "implicitly installed" to treat it as a package installed as a dependency with pacman -D --asdeps python-flit-core and retrying installation of python-pyglet did the trick. Is this on your radar? It might make sense to add it as a dependency to the manifest as long as there's nothing preventing it from being. Thanks!

P.S.: I didn't dig into it but this might be a build dependency only, throwing a glimpse at the posts below, so it might be worth uninstalling again afterwards. Would be good to get clarification on.

konez2k commented on 2024-11-07 11:47 (UTC)

@micwoj92 @dreieck Thank you for pointing this out, fixed in 2.0.18-2

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.