Python 2.7-x86 binaries?

39 views
Skip to first unread message

Temia Eszteri

unread,
May 25, 2012, 4:46:30 PM5/25/12
to Rabbyt
Another question so soon? Well, that's just grand.

Anyway, I've noticed that Rabbyt's support for Python 2.7 is rather
meager - that being a single egg for the x64 build of Python 2.7. Is
there any intent to build an x86 egg and/or Windows binary for this
version of Python?

I'm asking because I've been developing a texture and subsurface
management frontend for my project, which is undergoing a recent
reimplementation to make use of direct OpenGL calls like
glPrioritizeTexture in response to reference counts. Problem is that
this recent reimplementation will require the use of weak sets to
provide access to just what sprites are accessing the texture, and
weak sets aren't in Python's weakref module until 2.7.

It'd be kind of frustrating to have to handbuild Rabbyt for Python 2.7
in every working environment of mine, as well as ensure that whatever
I compile will work on other systems, so I was hoping a better answer
in the form of ready-made libraries would be an option.

So ultimately, any chance for better Python 2.7 support?

~Temia
--
When on earth, do as the earthlings do.

Temia Eszteri

unread,
May 26, 2012, 1:24:59 AM5/26/12
to Rabbyt
[Default] On Fri, 25 May 2012 13:46:30 -0700, Temia Eszteri
Welp, this has turned out to be a bigger problem than I expected. I
decided to do some debugging with the garbage collector module, and it
turns out my workaround using __del__() in lieu of weak sets (both
with the textures and in the layering system) is NOT working, and in
fact creating a memory leak.

So if it isn't too much trouble and you're not too busy, Mr. Marshall,
a more complete Python 2.7 release for Rabbyt would be super-keen
right about now!

~A very frazzled Temia

Jeff Barron

unread,
May 26, 2012, 3:06:58 AM5/26/12
to rab...@googlegroups.com

Check and see if this is your memory leak issue. may have a fix here: 
http://code.google.com/p/pyglet/issues/detail?id=552 

--
You received this message because you are subscribed to the Google Groups "Rabbyt" group.
To post to this group, send email to rab...@googlegroups.com.
To unsubscribe from this group, send email to rabbyt+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rabbyt?hl=en.


Temia Eszteri

unread,
May 26, 2012, 4:26:30 AM5/26/12
to rab...@googlegroups.com
[Default] On Sat, 26 May 2012 03:06:58 -0400, Jeff Barron
<infamo...@gmail.com> wrote:

>Check and see if this is your memory leak issue. may have a fix here:
>http://code.google.com/p/pyglet/issues/detail?id=552

I appreciate the suggestion, but I'm using Pygame for the time being
and I've identified the source of the memory leak through the gc
module - it's just not something I can readily fix due to weak sets
not being available in Python 2.6

The problem is that unused sprite objects (wrapped around Rabbyt's own
sprite code to make use of my frontend) are piling up since their
reference cycles aren't deletable due to having __del__() methods
(which I have to use to remove the sprite from the reference counters
and layers for the frontend for lack of those weak sets).

I'm fairly certain having weak sets would solve the problem since the
__del__() method could be removed outright.

~Temia

Matthew Marshall

unread,
May 26, 2012, 10:42:39 AM5/26/12
to rab...@googlegroups.com
Alright, this morning I set up a windows machine for building and got
windows binaries for 2.7 on the cheeseshop. Hope they work for you :-)

MWM

Temia Eszteri

unread,
May 26, 2012, 1:54:55 PM5/26/12
to rab...@googlegroups.com
[Default] On Sat, 26 May 2012 10:42:39 -0400, Matthew Marshall
<mwr...@gmail.com> wrote:

>Alright, this morning I set up a windows machine for building and got
>windows binaries for 2.7 on the cheeseshop. Hope they work for you :-)
>
>MWM

Works perfectly! All examples and tests ran without a hitch, and my
project ported over and runs just fine with the changes!

Thank you very much. :D I'll be sure to let you know when this is done
as I'm shooting to make a very pretty shmup to show what Rabbyt can
do.

Michael Lubker

unread,
May 27, 2012, 7:27:54 PM5/27/12
to rab...@googlegroups.com
Looking forward to see what you build!

~M
> --
> You received this message because you are subscribed to the Google Groups "Rabbyt" group.
> To post to this group, send email to rab...@googlegroups.com.
> To unsubscribe from this group, send email to rabbyt+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rabbyt?hl=en.
>



--
~ "Banking institutions are more dangerous to our liberties than
standing armies. If the American people ever allow private banks to
control the issue of their currency, first by inflation, then by
deflation, the banks and corporations that will grow up around the
banks will deprive the people of all property until their children
wake up homeless on the continent their fathers conquered. The issuing
power should be taken from the banks and restored to the people, to
whom it properly belongs." - Thomas Jefferson

~ "In conflict, straightforward actions generally lead to engagement,
surprising actions generally lead to victory." - Sun Tzu

http://zeolitestudios.com
Reply all
Reply to author
Forward
0 new messages