python27: Different python27 binaries
Peter Brommer
p.brommer at warwick.ac.uk
Tue May 14 06:02:56 PDT 2013
Hi,
I am trying to create a new Portfile (attached) for a python script (namely https://sourceforge.net/projects/cif2cell/ ). In principle, everything goes well, not much to do, it's just that the script does not work as intended. If however, I run the cif2cell file included in the tar.gz-Archive, everything works fine. The only difference I could find between the cif2cell script included in the tar.gz and the one generated by the python setup.py sequence run by the mac ports build command is in the very first line. The original script reads
#!/usr/bin/env python
while the newly generated one reads
#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
On my system /usr/bin/env python evaluates (via multiple soft links) to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 both this file and the other file are binaries created by the mac port python27. I can see the binaries are different.
I now have two questions:
* What is the difference between those two python binaries?
* How can I modify the Portfile to get the script to use the other one instead?
Thanks,
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Portfile
Type: application/octet-stream
Size: 1362 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130514/f54d3d2e/attachment.obj>
More information about the macports-dev
mailing list