Improve bootstrapping python code

Bug #831028 reported by Mathieu Virbel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pygame Subset for Android
New
Undecided
Unassigned

Bug Description

The current code generated by Cython have few issues:
* cannot use exec() inside it
* don't initialize C-API thread support (PyEval_InitThreads is not called, then further extension like ffmpeg will not work)
* using import <yourmainfile> cause further import in thread to be stuck at a new import
* the import broke the __name__ == __main__

On kivy/android version, based on pgs4a, i've reimplemented the bootstraping code. It's now written in C, and resolve all issues before. It's available at http://bazaar.launchpad.net/~tito-bankiz/pgs4a/kivy/revision/132

You might be interested to adapt it for pgs4a :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.