[Gmsh] gmsh 2.12.0 : gmshpy : installation directory
G. D. McBain
gdmcbain at protonmail.com
Thu Apr 28 03:43:42 CEST 2016
-------- Original Message --------
Subject: [Gmsh] gmsh 2.12.0 : gmshpy : installation directory
Local Time: 27 avril 2016 7:02 PM
UTC Time: 27 avril 2016 09:02
From: fabien.rozar at umontpellier.fr
To: gmsh at onelab.info
CC: remy.mozul at umontpellier.fr
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 :
Before the compilation, I configured the generation of 'gmshpy' with :
$ cd build
$ cmake -DENABLE_WRAP_PYTHON=ON .../gmsh-2.12.0-source
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)"
Question : Could you provide a release where the directory 'build/wrappers/gmshpy' is installed (copied)
in one of the python default search directories?
(the directory '/usr/local/lib/python2.7/dist-packages' seems to be the more suitable)
Hello. That might be a good idea (I dont' know how "make install" works in Gmsh), but in the meantime a workaround is:
$ cd /usr/local/gmshpy
$ sudo python setup.py install
That puts gmshpy in /usr/local/lib/python2.7/dist-packages, as requested.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmsh