← Back to team overview

ffc team mailing list archive

Re: [UFC-dev] FFC + Cygwin

 

Wed, 31 Jan skrev Anders Logg:
> On Wed, Jan 31, 2007 at 11:11:40PM +0100, Garth N. Wells wrote:
> > 
> > 
> > Anders Logg wrote:
> > > On Wed, Jan 31, 2007 at 07:13:22PM +0100, Garth N. Wells wrote:
> > >> When running ffc under Cygwin, I get the following error:
> > >>
> > >> Traceback (most recent call last):
> > >>   File "/usr/bin/ffc", line 20, in ?
> > >>     from ffc.common.debug import *
> > >>   File "/usr/lib/python2.4/site-packages/ffc/__init__.py", line 2, in ?
> > >>     from ffc.compiler.compiler import *
> > >>   File "/usr/lib/python2.4/site-packages/ffc/compiler/compiler.py", line 37, in ?
> > >>     from ffc.format import ufcformat
> > >>   File "/usr/lib/python2.4/site-packages/ffc/format/ufcformat.py", line 14, in ?
> > >>     from ufc import *
> > >> ImportError: No module named ufc
> > >>
> > >> I have installed ufc.
> > > 
> > > Do you get the same error if you just write a simple Python script
> > > test.py containing only the line
> > > 
> > > from ufc import *
> > > 
> > > and then run it by python test.py?
> > >
> > 
> > The problem is that Cywgin does not have
> > 
> >    /usr/local/lib/python2.X/site-packages
> > 
> > in the path.
> > 
> > Is there a reason why ufc installs under /usr/local/lib/python2.x, while 
> > other FEniCS packages install under /usr/lib/python2.x?
> 
> I don't know, let's ask the other guys.
> 
> Can we change the default location for the installation of UFC to
> /usr?
> 
> Garth, in the meantime, just change the variable PREFIX in the UFC
> Makefile to /usr. The installation is just a single header file (and
> some Python modules) so we have a very simple Makefile instead of a big
> build system like scons, autotools etc.

In my opinion, default install prefix should _never_ be /usr unless the
native package system of your platform is used. Installing directly in /usr
tends to be messy. There is a reason for the PREFIX possibility, use it if
you deliberately want to mess thing up. /usr/local is the way to go.

Just my 2øre.

-- 
[simula.research laboratory]
                 Åsmund Ødegård
                 IT-Manager
                 phone: 67828291 / 90069915
                 http://www.simula.no/
-- auto sig --
HEB 10:27  But a certain fearful looking for of judgment and fiery indignation,
 which shall devour the adversaries.


Follow ups

References