I noticed something when I was trying to recreate this issue. The so cache
generation gets triggered without good reason (on my system), because
ctypes.util.find_library('libc.so') returns None, and it's before 'c' in the
search path. This could be optimized (skipping the cache generation) just
by changing the order of the search path. See attached patch (against
trunk).
--
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/ \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\ /\\\ \\
/ /\\\ /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
d.p.s
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Index: pyglet/lib.py
===================================================================
--- pyglet/lib.py (revision 1683)
+++ pyglet/lib.py (working copy)
@@ -68,10 +68,11 @@
elif type(platform_names) is tuple:
platform_names = list(platform_names)
+ platform_names.extend(names)
+
if self.platform == 'linux2':
platform_names.extend(['lib%s.so' % n for n in names])
- platform_names.extend(names)
for name in platform_names:
try:
lib = ctypes.cdll.LoadLibrary(name)