pyglet 1.3.0b1

1,201 views
Skip to first unread message

Rob

unread,
May 6, 2017, 2:36:30 PM5/6/17
to pyglet-users
Hi all,

I am proud to present the first beta version of pyglet 1.3.0. This version should contain all the functionality we want to release for 1.3.0. But we now need _your_ help to test it. Please try it in your projects and inform us of any issues you find.

The easiest way to get this release is using pip:

pip install pyglet==1.3.0b1

I recommend you do this in a virtualenv to not remove the existing version of pyglet on your system.



Please report issues here: https://bitbucket.org/pyglet/pyglet/issues

Kind regards,
Rob

Serdar Yegulalp

unread,
May 12, 2017, 5:49:53 PM5/12/17
to pyglet-users
Excellent, long-awaited news!

I have a fairly large project that uses Pyglet, so I'll try it as a drop-in replacement and put it through its paces over the next couple of weeks.

Bruce Smith

unread,
May 12, 2017, 11:56:36 PM5/12/17
to pyglet-users
I recommend you do this in a virtualenv to not remove the existing version of pyglet on your system.

For those of us who rarely use virtualenv, can you show us a short command sequence which would install or update virtualenv, create a new virtualenv, install pyglet 1.3.0b1 in it, and run an existing python program in it (consisting of many python files, some of which do sys.path manipulations to import python files from non-child directories)? (In my case I normally use python 2.7 and run this by typing something like "python main.py".)

(I'd be happy to test the new pyglet release this way, but I keep putting off the needed googling to answer that virtualenv question myself, and I'm guessing someone here just knows the answer.)

- Bruce Smith

--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscribe@googlegroups.com.
To post to this group, send email to pyglet...@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Benjamin Moran

unread,
May 13, 2017, 2:49:14 AM5/13/17
to pyglet-users
Hi Bruce,

If you're on Linux, this should do it:

python -m venv  pygletvenv
source pygletvenv
/bin/activate
pip install pyglet
==1.3.0b1

After you've called bin/activate, you should see your bash shell indicate that you're in a venv. Any programs you run from this point will use the python interpreter and libraries that you've installed while inside this virtualenv.  When you're done, simply type "deactivate" to exit from the virtual environment.

As a quick test, simply type "python", then "import pyglet", and check "pyglet.version".



On Saturday, May 13, 2017 at 12:56:36 PM UTC+9, Bruce Smith wrote:
I recommend you do this in a virtualenv to not remove the existing version of pyglet on your system.

For those of us who rarely use virtualenv, can you show us a short command sequence which would install or update virtualenv, create a new virtualenv, install pyglet 1.3.0b1 in it, and run an existing python program in it (consisting of many python files, some of which do sys.path manipulations to import python files from non-child directories)? (In my case I normally use python 2.7 and run this by typing something like "python main.py".)

(I'd be happy to test the new pyglet release this way, but I keep putting off the needed googling to answer that virtualenv question myself, and I'm guessing someone here just knows the answer.)

- Bruce Smith
On Sat, May 6, 2017 at 11:36 AM, Rob <silves...@gmail.com> wrote:
Hi all,

I am proud to present the first beta version of pyglet 1.3.0. This version should contain all the functionality we want to release for 1.3.0. But we now need _your_ help to test it. Please try it in your projects and inform us of any issues you find.

The easiest way to get this release is using pip:

pip install pyglet==1.3.0b1

I recommend you do this in a virtualenv to not remove the existing version of pyglet on your system.



Please report issues here: https://bitbucket.org/pyglet/pyglet/issues

Kind regards,
Rob

--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users...@googlegroups.com.

Rob van der Most

unread,
May 13, 2017, 3:06:11 AM5/13/17
to pyglet...@googlegroups.com
Also these instructions should help for all platforms:

Rob

To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscribe@googlegroups.com.

Bruce Smith

unread,
May 13, 2017, 12:35:19 PM5/13/17
to pyglet-users
Hi Rob,

Thanks! Your commands did not quite work, but they came close enough that I found the motivation to do the much-reduced "incremental googling" needed to make them work.

I'm on a Mac (close enough to linux) and normally use tcsh (for this test, I switched to bash). To make your commands work, I only had to:

- first do 'sudo pip install virtualenv --upgrade'  (I don't know if this was necessary, but my prior version was old)

- replace 'python -m venv' with 'virtualenv' in your suggested commands -- without this, it failed with "No module named venv" (even after upgrading virtualenv). (I never upgraded pip -- could that be the problem? Another possibility -- my python 2.7 comes from ActiveState (ActivePython 2.7.8.10), not python.org.)

Anyway, after that, "python" was using the new pyglet, and the first pyglet program I tried worked. I will keep using the new pyglet and report any problems. (BTW, thanks very much for all your work in producing this upgrade.)

Do you happen to know whether .pyc files should be compatible between virtualenvs (assuming the same python executable produced them, not counting virtualenv's copy as being different from the one it was based on), or should I remove all .pyc files when switching virtualenvs, as a precaution? (I know that, in theory, .pyc files are supposed to contain version information that makes it unnecessary to ever remove them, but in practice, I have had crashes from not removing them when switching python executables.)

- Bruce Smith

Stu.Axon

unread,
Aug 13, 2017, 8:12:46 PM8/13/17
to pyglet-users
Probably a bit late, but in case anyone finds this in future:

venv is python3, while virtualenv is python2 (and sometimes 3), it can get confusing.

Benjamin Moran

unread,
Aug 14, 2017, 2:25:22 AM8/14/17
to pyglet-users
Not too late :)
I'll see if I can clarify this in the documentation.
Thanks for the feedback.

-Ben

Benjamin Moran

unread,
Aug 16, 2017, 1:52:47 AM8/16/17
to pyglet-users
Hey Stu,

I've started to update the docs a bit to illustrate the different libraries. You can have a look here:
http://pyglet-test.readthedocs.io/en/latest/internal/virtualenv.html


On Monday, August 14, 2017 at 9:12:46 AM UTC+9, Stu.Axon wrote:

Stu.Axon

unread,
Aug 17, 2017, 7:09:38 PM8/17/17
to pyglet-users
Yup, looks good to me :)

Benjamin Moran

unread,
Aug 17, 2017, 8:43:06 PM8/17/17
to pyglet-users
Great! I'll get that merged in.
Reply all
Reply to author
Forward
0 new messages