[Gmsh] gmsh 2.12.0 : gmshpy : installation directory
fabien.rozar at umontpellier.fr
Fri Apr 29 20:12:54 CEST 2016
I can use CMAKE_INSTALL_PREFIX to copy the things wherever
I want, but it doesn't fix my issue, because I don't want to finish
the installation step with everything copied in :
For example, I don't want to have 'bin/gmsh' there.
I solve the installation of 'gmshpy' manually (sudo cp ...). I am just
looking for a way to do it from the installation step.
To solve my issue, either :
- the '/usr/local/gmshpy/setup.py' works
- a cmake variable is introduced to specify the installation directory
Let me know if I'm wrong or if there is a patch in a next release
Le 28/04/2016 21:51, Christophe Geuzaine a écrit :
>> On 27 Apr 2016, at 11:02, Fabien Rozar <fabien.rozar at umontpellier.fr> wrote:
>> 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
>> $ 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)"
>> 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
More information about the gmsh