What problems do you have with python_select? MacPorts should put pythons in /opt/local/Library, but if you don't install any python versions that won't happen. Note that python_select is just a script to choose between different pythons (including the system python).<br>
<br>python_select should be in /opt/local/bin. To take a look at the python versions you have available, use the command<br><br>python_select -l<br><br>You should see something like this:<br><br>username$ python_select -l<br>
Available versions:<br>current none python24 python25 python26 python26-apple python27 python32<br><br>If all you see is python26-apple, that means you haven't installed any other python versions yet. These have to be installed separately from python_select. For example, try installing python27:<br>
<br>sudo port install python27<br><br>Now you should be able to choose between these two versions using python_select. To actually use python_select to change default python versions, just select the version you want to run from the list provided with "-l":<br>
<br>python_select python27<br><br>My last comment -- on Mac, python is installed as a framework, so the vanilla "./configure && make && make install" won't work for its source code. You need additional cflags and compiler options, which is what makes MacPorts so nice.<br>
<br>Hope this helps,<br>Jason<br><br><div class="gmail_quote">On Fri, Feb 18, 2011 at 1:15 PM, Salman Zubair Toor <span dir="ltr"><<a href="mailto:salman.toor@it.uu.se">salman.toor@it.uu.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I am new to the Macports. I have Snow Leopard and I have installed macports using Macports-1.9.2-10.6.dmg.<br>
<br>
The problem is, after installation it don't have /opt/local/Library directory. When I install python it puts everything in /opt/local/ (I mean in lib and bin directories).<br>
<br>
<br>
macport.conf have<br>
<br>
-----------------<br>
# Directory containing Applications from ports.<br>
applications_dir /Applications/MacPorts<br>
-----------------<br>
<br>
Thats why I think "python_select" fails to set the current version.<br>
<br>
Do I need to specify any flag while installation, which install things in Frameworks?<br>
<br>
I have also tried with the source but with the standard commands (./configure , make, make install) but no luck.<br>
<br>
Regards..<br>
Salman.<br>
<br>
_______________________________________________<br>
macports-users mailing list<br>
<a href="mailto:macports-users@lists.macosforge.org" target="_blank">macports-users@lists.macosforge.org</a><br>
<a href="http://lists.macosforge.org/mailman/listinfo.cgi/macports-users" target="_blank">http://lists.macosforge.org/mailman/listinfo.cgi/macports-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jason M. Swails<br>Quantum Theory Project,<br>University of Florida<br>Ph.D. Candidate<br>352-392-4032<br>