[visionegg] Re: Python and VisionEgg on OS X Tiger
- From: Nick Knouf <nknouf@xxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Tue, 7 Jun 2005 18:03:31 -0400
I had a different problem with VisionEgg and Tiger.
When attempting to build VisionEgg, I get conflicting type errors
about _darwin_maxpriority. Turns out that the argument types for
getpriority and setpriority have changed slightly in Tiger (which
isn't reflected in the manpages for the two functions either).
Basically, the second arguments to getpriority and setpriority change
from an "int" to an "id_t" (whatever that is).
The diff with the SWIG file is at the end of this e-mail. I'm not
sure how to seamless integrate this into the codebase, because
obviously making this change will break things on versions of OS X
less than Tiger; since I haven't really ever used SWIG before, I'm
not sure how to conditionally make these changes only for Tiger.
nick
Index: swig_src/darwin_maxpriority.i
===================================================================
RCS file: /cvsroot/visionegg/visionegg/swig_src/darwin_maxpriority.i,v
retrieving revision 1.4
diff -r1.4 darwin_maxpriority.i
39c39
< extern int getpriority( int, int );
---
> extern int getpriority( int, id_t);
41c41
< extern int setpriority( int, int, int );
---
> extern int setpriority( int, id_t, int );
On Jun 6, 2005, at 2:50 PM, Kevin MacKenzie wrote:
Hi Everyone,
I've done some work to get things running after an Upgrade to Tiger
seemed to break access to the site-packages directory in the
included python 2.3.5 with Tiger.
The issue is a simple one to fix, and there is a downloadable
workaround. The long winded explanation to what has broken is
available here: http://bob.pythonmac.org/archives/2005/05/01/python-
on-mac-os-x-104-tiger/
Simply put, the symlink to /Library/Python/2.3/site-packages no
longer worked with OS X Tiger. A downloadable fix (which I've
attached) inserts a new .pth file in the site-packages directory
that will point to the old site-packages directory.
The attached file is called TigerPython23Compat.pkg.zip and can be
found with a quick google search.
Cheers,
Kevin
<TigerPython23Compat.pkg.zip>
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] Python and VisionEgg on OS X Tiger
- From: Kevin MacKenzie
Other related posts:
- » [visionegg] Python and VisionEgg on OS X Tiger
- » [visionegg] Re: Python and VisionEgg on OS X Tiger
Index: swig_src/darwin_maxpriority.i =================================================================== RCS file: /cvsroot/visionegg/visionegg/swig_src/darwin_maxpriority.i,v retrieving revision 1.4 diff -r1.4 darwin_maxpriority.i 39c39 < extern int getpriority( int, int ); --- > extern int getpriority( int, id_t); 41c41 < extern int setpriority( int, int, int ); --- > extern int setpriority( int, id_t, int );
On Jun 6, 2005, at 2:50 PM, Kevin MacKenzie wrote:
Hi Everyone,
I've done some work to get things running after an Upgrade to Tiger seemed to break access to the site-packages directory in the included python 2.3.5 with Tiger.
The issue is a simple one to fix, and there is a downloadable workaround. The long winded explanation to what has broken is available here: http://bob.pythonmac.org/archives/2005/05/01/python- on-mac-os-x-104-tiger/
Simply put, the symlink to /Library/Python/2.3/site-packages no longer worked with OS X Tiger. A downloadable fix (which I've attached) inserts a new .pth file in the site-packages directory that will point to the old site-packages directory.
The attached file is called TigerPython23Compat.pkg.zip and can be found with a quick google search.
Cheers,
Kevin
<TigerPython23Compat.pkg.zip>
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] Python and VisionEgg on OS X Tiger
- From: Kevin MacKenzie