Summary: | [science overlay] dev-python/pyglet-1.0 (New package) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arne Babenhauserheide <arne_bab> |
Component: | New packages | Assignee: | Default Assignee for New Packages <maintainer-wanted> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | arne_bab, denilsonsa, goric, grozin, python, radhermit, rmay31, thomas.pani |
Priority: | High | Keywords: | EBUILD, InOverlay |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.pyglet.org | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 248393 | ||
Attachments: |
pyglet-1.0.ebuild
pyglet-1.0.ebuild pyglet-1.0-r1.ebuild pyglet-1.0-r1.ebuild pyglet-1.1_alpha1.ebuild avbin-bin-2.ebuild pyglet-1.1_beta1.ebuild pyglet-1.1.2.ebuild pyglet-1.1.2.ebuild |
Description
Arne Babenhauserheide
2008-01-23 08:57:39 UTC
Created attachment 141641 [details]
pyglet-1.0.ebuild
PyGlet ebuild 1.0.
I installed it, and it should work on all platforms which support Python.
Requires ctypes 1.0 or later to install with Python 2.4'
Doesn't have additional Requirements with Python 2.5, as far as I can see.
Best wishes,
Arne
I just saw, that this ebuild i marked as maintainer wanted. I'm just testing, if I will use PyGlet in my next project. If I'll use it, I'd gladly be maintainer of the ebuild. I just have to know what my tasks would be as maintainer. Created attachment 143046 [details]
pyglet-1.0.ebuild
updated ebuild:
- fixed DESCRIPTION, LICENSE, inherits
- added RDEPEND + NEED_PYTHON (possibly incomplete, pyglet docs mention something about Gdk and ALSA/OpenAL)
- added examples USE flag
The updated ebuild looks nice. Thanks! I added ~amd64 (I'm using amd64). I found one problem, though: DOCS="DESIGN NOTICE" - dodoc: DESIGN does not exist I think it should read: DOCS="README NOTICE" Also there is some additional optional requirement: To play compressed audio and video files, you will also need AVbin. -> http://code.google.com/p/avbin Created attachment 143196 [details]
pyglet-1.0-r1.ebuild
Created attachment 143197 [details]
pyglet-1.0-r1.ebuild
sorry, removed DOC "NOTICE" instead of "DESIGN" in previous ebuild.
(In reply to comment #6) > Created an attachment (id=143197) [edit] > pyglet-1.0-r1.ebuild Great, thanks. I don't know what I thought when I put DESIGN in there... Actually, README will be included via the distutils eclass. Regarding avbin: This one's really crappy. I guess writing a ebuild to compile it from source will be impossible, because avbin needs to be compiled against a specific version of ffmpeg, which gets pulled in via svn. I have a little ebuild to install the binary version, but I haven't filed a bug for it because it's a binary ebuild with no existing source ebuild. I'll just attach it to this bug. Created attachment 145026 [details]
pyglet-1.1_alpha1.ebuild
Created attachment 145027 [details]
avbin-bin-2.ebuild
Cool, many thanks! Created attachment 150715 [details]
pyglet-1.1_beta1.ebuild
working ebuild in this bug's series: pyglet-1.1_beta1.ebuild
pyglet-1.1_beta2 can be emerged by the _beta1 ebuild from this bug. I've committed it to the science overlay (I need it as a dependency for sympy). I see the following problems with it on my Gentoo laptop: 1. hello_world.py does not show any text, just a black window. I thought that, maybe, pyglet cannot find the requested font, and removed the font name. No effect. All example programs which are supposed to display some texts show nothing. In text_input.py, I can type, the cursor moves, but no characters are displayed. 2. No sound is produced. video.py does display video files, but silently. (Sound works OK on my laptop - ALSA, Intel on-board sound card.) Do others have these (or some other) problems with pyglet? I've committed pyglet-1.1.ebuild (and avbin-bin-6.ebuild) to the science overlay. As before, the first "Hello world" example from the documentation does not work. The second example works, but the third does not. People don't like programs with non-working "Hello world". If somebody knew how to make it (and other simple examples) working, it would be possible to discuss moving pyglet to the main tree. The other difficulty is its dependency, avbin. Currently, it is a binary ebuild for x86 and amd64 only (and there are no -6 sources at all, only -5). Instructions about compiling from sources involve fetching a specific cvs snapshot of ffmpeg, and don't mix well with the normal ebuild practices. But this can be circumvented by mirroring this snapshot at Gentoo. So, the main problem is how to make pyglet working. (In reply to comment #13) Hmm... I can't reproduce any of those errors. All the examples work just fine. I sometimes had sound problems with 1.1, but this is now gone in 1.1.1 (renaming ebuild works just fine). However, I'm running media-libs/mesa-7.0.3 because the stable 6.5.2-r1 version turned out to be very buggy (at least with pyglet). (In reply to comment #12) I installed pyglet from the science overlay. 1. hello_world.py works for me. It displays white text on a black background. 2. video.py crashed with "Illegal instruction", so I can't test sound with that. For sound to work with brainworkshop.pyw (see Bug 248393), I had to install dev-python/pyopenal. (I guess that dev-python/pyalsaaudio would work too, but I haven't tried, as I didn't find that package until just now.) So sound does work with at least one application. Created attachment 176697 [details]
pyglet-1.1.2.ebuild
Version bump to 1.1.2, updated some dependencies.
avbin has also been bumped to -7, renaming the ebuild works just fine.
Many thanks. I'll commit this to the science overlay (at the moment, I have problems accessing it, so, probably, a few days later...) I've installed this version to 2 computers: my laptop and my home desktop. What I observe: 1. Laptop. Hello world does not work - a black window with a small piece of a white curve. All examples which are supposed to display some characters don't do that (e.g., the text input example - no labels; when I type, the cursor moves, but no characters appear). No sound from any example program (video.py shows videos, but silently). 2. Desktop. Hello world shows the label. When I try to close it, the X server crashes. No sound from any example program. Attempts to close any pyglet window, or to click some button, crash the X server. Not a very stable program :-( (In reply to comment #17) > Not a very stable program :-( These problems are most probably not caused by pyglet itself. As for the rendering problems: - try disabling compositing window managers - consider upgrading to mesa-7 (I've got 7.0.3 here and everything works fine). mesa 6.5.2 is >2 years old, and has lots of known (unfixed) bugs, while 7.0.3 is virtually bug-free. As for sound: Can you try In [1]: import pyglet In [2]: import pyglet.media.drivers.openal In [3]: import pyglet.media.drivers.alsa to see if that works? I just noticed the latter one gives me: AttributeError: /usr/lib/libasound.so.2: undefined symbol: alsa_lisp_default_cfg_free (In reply to comment #18) > AttributeError: /usr/lib/libasound.so.2: undefined symbol: > alsa_lisp_default_cfg_free Just a follow-up: See upstream bug #378: http://code.google.com/p/pyglet/issues/detail?id=378 Looks like you'll have to use openal till this is fixed. Or we'll fix it ourselves. Created attachment 176805 [details]
pyglet-1.1.2.ebuild
Adds built_with_use for alsa USE flag.
(In reply to comment #18) > - try disabling compositing window managers I'm using kde-3.5 with its window manager. > - consider upgrading to mesa-7 (I've got 7.0.3 here and everything works > fine). mesa 6.5.2 is >2 years old, and has lots of known (unfixed) bugs, while > 7.0.3 is virtually bug-free. I've recently upgraded to the newest X and opengl stuff: mesa-7.4.1, xorg-server-1.6.1, intel driver 2.7.0. The result of running hello_world.py is still the same: a black window with a small white line segment, no letters. This package (v1.1.4) seems to be in the portage tree now. Thanks for adding. yes, in main tree. |