python portfile issue with running setup.py twice

Frank Schima macsforever2000 at macports.org
Tue Sep 28 12:31:59 PDT 2010


Hi all,


I'm trying to make a new python 2.6 based portfile. The python code requires two invocations of setup.py, the first for configuration. But the python2.6 portgroup does not seem to handle that. So i just overrode the build phase. 

I'm getting the build instructions from this site:

<http://ltl.tkk.fi/~theory/usadel1/installation.html#unixes>

Here is my attempted code:

build {
    ${python.bin} ${worksrcpath}/setup.py config_fc --fcompiler=gfortran-mp-4.4 --noarch build
    ${python.bin} ${worksrcpath}/setup.py install --skip-build
}

But the error I see is as follows:

--->  Building py26-usadel1
Error: Target org.macports.build returned: invalid command name "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6"

Of course i have python 2.6 installed and I can run "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6" from the command line. What am I doing wrong?


Cheers!
Frank



More information about the macports-dev mailing list