On Thu, April 23, 2009 12:03, Garth N. Wells wrote: > > > Johannes Ring wrote: >> Hi Ali, >> >> There are Ubuntu 9.04 packages for all the FEniCS packages in our >> repository. If you are interested, you might want to have a look at the >> instructions on the wiki: >> >> http://fenics.org/wiki/Download >> >> On Wed, April 22, 2009 16:13, Garth N. Wells wrote: >>> >>> Ali Mesforush wrote: >>>> Hello >>>> As you know, ubuntu 9.04 will release tomorrow. Does dolfin work on >>>> ubuntu 9.04 correctly? >>> More or less. There are some Jaunty bugs which cause problems: >>> >>> - sysconfig.get_python_lib() returns the wrong path (site-packages >>> instead of the new dist-packages). This is a problem for ufc. >> >> sysconfig.get_python_lib() returns the correct path here. I guess it has >> been fixed. >> > > With 'print print sysconfig.get_python_lib()' I get > > $prefix/lib/python2.6/site-packages > > What do you get?
I get this: Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from distutils import sysconfig >>> print sysconfig.get_python_lib() /usr/lib/python2.6/dist-packages >>> but then I forgot that UFC specifies the 'prefix' keyword. If I do that, I get the same result as you: >>> print sysconfig.get_python_lib(prefix="$prefix") $prefix/lib/python2.6/site-packages >>> However, when I generated the Ubuntu package for UFC it was installed under dist-packages: # dpkg -L python-ufc /. /usr /usr/share /usr/share/pyshared-data /usr/share/pyshared-data/python-ufc /usr/share/doc /usr/share/doc/python-ufc /usr/share/doc/python-ufc/AUTHORS /usr/share/doc/python-ufc/README /usr/share/doc/python-ufc/copyright /usr/share/doc/python-ufc/TODO.gz /usr/share/doc/python-ufc/changelog.Debian.gz /usr/share/pyshared /usr/share/pyshared/ufc.py /usr/share/pyshared/ufc_utils /usr/share/pyshared/ufc_utils/__init__.py /usr/share/pyshared/ufc_utils/dof_map.py /usr/share/pyshared/ufc_utils/function.py /usr/share/pyshared/ufc_utils/integrals.py /usr/share/pyshared/ufc_utils/finite_element.py /usr/share/pyshared/ufc_utils/build.py /usr/share/pyshared/ufc_utils/form.py /usr/lib /usr/lib/python2.6 /usr/lib/python2.6/dist-packages /usr/lib/python2.6/dist-packages/_ufc.so /usr/include /usr/include/swig /usr/include/swig/ufc.i Maybe it is working because I use DESTDIR when generating the package. Not sure. So, I guess the bug is not fixed after all. Sorry. Johannes > Garth > >>> A solution >>> is to add '/usr/local/lib/python2.6/site-packages' to your PYTHONPATH. >>> >>> - openmpi is broken (as is the frustrating and usual custom in Ubuntu). >>> See >>> >>> http://www.open-mpi.org/community/lists/users/2009/03/8571.php >>> >>> The manifestations are a linking problem when both PETSc and Trilinos >>> are enabled, and when using mpiexec or mpirun on a local host a >>> password >>> is requested. I've compiled and installed openmpi 1.3.2rc1 which seems >>> to work. >> >> This is not a problem with the Ubuntu packages since they are not built >> against Trilinos. >> >> Johannes >> >> > > > _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
