On Sep 20, 2013, at 5:58 PM, Hans-Christoph Steiner 
<eighth...@users.sourceforge.net> wrote:

> 
> On Sep 20, 2013, at 4:37 PM, Hanspeter Niederstrasser wrote:
> 
>>> RuntimeVars: PYTHONPATH: %p/Library/Python/%type_raw[python]/site-packages
>> 
>> Won't this break anything else that has already set PYTHONPATH?  At 
>> least, you'll probably want to append or prepend to the existing value 
>> rather than over writing.  And how will fink-python using pymods react 
>> to being forced to search in %p/Library/Python?
> 
> So far this has been working for what I have be doing (just today).  These 
> are all things I'm not aware of.  What do you propose?  Should I just append 
> $PYTHONPATH ?  Like:
> 
> RuntimeVars: PYTHONPATH: 
> %p/Library/Python/%type_raw[python]/site-packages:$PYTHONPATH
> 

This is a very bad thing. This can potentially break ALL fink python packages. 
Let's say this sets PYTHONPATH to %p/Library/Python/2.7/site-packages; what 
will happen when someone runs python3.3? It will try to load modules from 
%p/Library/Python/2.7/site-packages which will might happen to work for pure 
python modules but is just as likely to throw an error. Modules that contain C 
code will certainly not work.

No fink package should ever set PYTHONPATH globally. It will never work right. 
Why do you need to do this?

Daniel

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to