UFC won't build with locally installed SWIG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UFC |
Fix Released
|
High
|
Johannes Ring |
Bug Description
The SWIG extension won't build with SWIG installed locally but still in a user's path.
$ scons
scons: Reading SConscript files ...
Checking for SWIG...(cached) yes
Checking for SWIG version > 1.3.35...(cached) yes
Checking for Boost...(cached) yes
Checking for Python...(cached) yes
scons: done reading SConscript files.
scons: Building targets ...
swig -o src/ufc/ufc_wrap.cc -python -c++ -shadow -O src/ufc/ufc.i
c++ -o src/ufc/ufc_wrap.os -c -fPIC -I/usr/include -I/usr/
c++ -o src/ufc/_ufc.so -shared src/ufc/ufc_wrap.os
scons: done building targets.
$ sudo scons install
scons: Reading SConscript files ...
Checking for SWIG...(cached) no
scons: done reading SConscript files.
scons: Building targets ...
scons: `install' is up to date.
scons: done building targets.
*** Warning: swig not found.
Python extension module will not be installed.
Changed in ufc: | |
milestone: | none → 1.2.1 |
I suspect this it due to Python being called by the root user when doing 'sudo scons install'. root does not known where the user installed UFC.