libpython.dylib sym link ?
Chris Jones
jonesc at hep.phy.cam.ac.uk
Mon Sep 12 14:46:53 PDT 2011
Hi,
I should add the variant worked fine until recently, around the time Lion was released. I'm testing it on Lion myself.
Chris
On 12 Sep 2011, at 9:32pm, Chris Jones wrote:
> Hi,
>
> I am trying to fix a problem with the root port and the python26 variant. The code for the variant is below.
>
> As far as I can tell, the configure step for the build fails because the python-libdir directory does not have a lib libpython.dylib file. It only has the versioned file libpython2.6.dylib.
>
> Chris-Jones-Macbook-Pro ~ > ls /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config/
> Makefile Setup.config config.c install-sh libpython2.6.dylib python.o
> Setup Setup.local config.c.in libpython2.6.a makesetup
>
> Is there anyway I can create this versionless version, via a sym link for instance (which is how the /Developer/SDKs areas handle this) ? Or any other advice on how to fix this ?
>
> cheers Chris
>
>
>
> variant python26 description {Builds port with python 2.6 support} {
> configure.args-delete --disable-python
> configure.args-append --enable-python \
> --with-python-incdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6" \
> --with-python-libdir="${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config"
> depends_lib-append port:python26
>
> post-destroot {
> file mkdir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> move ${destroot}${prefix}/lib/root/ROOT.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> move ${destroot}${prefix}/lib/root/ROOT.pyc ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> move ${destroot}${prefix}/lib/root/ROOT.pyo ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> move ${destroot}${prefix}/lib/root/ROOTwriter.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> move ${destroot}${prefix}/lib/root/python/genreflex ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> move ${destroot}${prefix}/lib/root/writer.py ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> }
> }
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2966 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110912/2326fcf1/attachment.bin>
More information about the macports-users
mailing list