[Pythonmac-SIG] Multiple python 2.5 framworks

Dethe Elza delza at livingcode.org
Wed Feb 7 20:01:58 CET 2007


If you build an actual OS X application using py2app, it will embed  
the Python2.5 framework into the app with no conflict.  I have many  
full python2.5 frameworks installed, from various applications I have  
built this way, as well as MacPorts and fink (non-framework)  
versions.  I make sure my path points to my standard framework  
install and that is not picked up by any application I've built with  
other frameworks, including those which may include special-built  
frameworks, or older versions of Python.

If you are not using py2app to build your applications, then your  
mileage may vary, but you can still easily have multiple framework  
installs.  Just make sure that each application is referencing the  
right framework.  How you do that depends on how the applications are  
run.  But I strongly recommend that you use py2app for anything you  
distribute to users: They then have no path dependencies and don't  
have to build anything, just drag your application to their / 
Applications folder and they're done.

--Dethe

On 7-Feb-07, at 10:22 AM, Brian Granger wrote:

> Hi,
>
> We need to deploy a qt4 based python app and I am working on some of
> the build issues.  Because we are using Qt, we need a framework build
> of Python (we are using 2.5).  One of our requirements is that users
> can build and use the app without doing a system wide install.
>
> I am worried that our private python2.5 framework will conflict with
> the system wide python2.5 framework if it is installed.  Can two
> python2.5 frameworks coexist on the same system.  What are the
> potential issues and pitfalls?
>
> I can set the users paths to point to our python.  I am mostly worried
> about building other python packages (using distutils) that we include
> in our app.  How can I be sure that the various build processes won't
> pick up the system wide python2.5 framework?
>
> Thanks
>
> Brian
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig


Young children play in a way that is strikingly similar to the way  
scientists work --Busytown News




More information about the Pythonmac-SIG mailing list