[Gmsh] gmsh 2.12.0 : gmshpy : installation directory

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Apr 28 21:51:00 CEST 2016


> On 27 Apr 2016, at 11:02, Fabien Rozar <fabien.rozar at umontpellier.fr> wrote:
> 
> Hello,
> 
> I am a postdoc at LMGC in Montpellier with Frédéric Dubois as advisor. For 
> some user case of our software, LMGC90, we use the python module 'gmshpy'.
> 
> In order to use it on a new computer, I need to install it. I downloaded the
> source of gmsh 2.12.0 from the web page :
> http://gmsh.info/
> 
> Before the compilation, I configured the generation of 'gmshpy' with :
> $ cd build
> $ cmake -DENABLE_WRAP_PYTHON=ON .../gmsh-2.12.0-source
> $ make
> 
> The module 'gmshpy' is well build under 'build/wrappers/gmshpy'.
> 
> The point is that, after the installation step :
> $ sudo make install
> 
> the directory 'build/wrappers/gmshpy' is copied in '/usr/local' whereas
> this directory is not part of python default search directories :
> $ python -c "import sys; print '\n'.join(sys.path)"
> /usr/lib/python2.7
> /usr/lib/python2.7/plat-x86_64-linux-gnu
> /usr/lib/python2.7/lib-tk
> /usr/lib/python2.7/lib-old
> /usr/lib/python2.7/lib-dynload
> /usr/local/lib/python2.7/dist-packages
> /usr/lib/python2.7/dist-packages
> /usr/lib/pymodules/python2.7
> 
> Question : Could you provide a release where the directory 'build/wrappers/gmshpy' is installed (copied)
>                  in one of the python default search directories?
> 

Why not just

cmake -DCMAKE_INSTALL_PREFIX=/where/you/want/to/install/stuff

?

> (the directory '/usr/local/lib/python2.7/dist-packages' seems to be the more suitable)
> 
> Best regards, 
> ROZAR Fabien
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list