python portfile issue with running setup.py twice
Joshua Root
jmr at macports.org
Tue Sep 28 12:37:58 PDT 2010
On 2010-9-29 05:31 , Frank Schima wrote:
> 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?
You're trying to run the commands in Tcl instead of in a shell with the
system command.
- Josh
More information about the macports-dev
mailing list