building PETSc on Windows

Matthew Knepley knepley at gmail.com
Mon Mar 23 11:22:12 CDT 2009


On Mon, Mar 23, 2009 at 11:09 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:

> On Mon, Mar 23, 2009 at 11:48 AM, Matthew Knepley <knepley at gmail.com>
> wrote:
> >
> >>
> >> 2) BuildSystem assumes that the shell is '/bin/sh'... I would need it
> >> to find "sh" in the $PATH instead...
> >
> > Where is this assumption? In BuildSystem/config/programs.py we explicitly
> > search for 'sh', so it is available, we just need to use it everywhere.
> >
>
> Check this file:
>
> config/PETSc/utilities/petscdir.py
>
> See the lines
>
>      host   = config.base.Configure.executeShellCommand(self.shell+'
> '+configGuess, log = self.framework.log)[0]
>      output = config.base.Configure.executeShellCommand(self.shell+'
> '+configSub+' '+host, log = self.framework.log)[0]
>
> then see that 'self.shell' is naively defined to '/bin/sh' in
> Script.__init__() in the file below
>
> config/BuildSystem/script.py
>

Fixed. I left script the way it is, but fixed the configure stuff. I do not
want to
entangle config stuff in there. Let me know if this stuff works.

  Thanks,

     Matt


> --
> Lisandro Dalcín
> ---------------
> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
> Tel/Fax: +54-(0)342-451.1594
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090323/76b72724/attachment.html>


More information about the petsc-dev mailing list