[Gmsh] gmsh 2.12.0 : gmshpy : installation directory

ROZAR Fabien 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 :
'/usr/local/lib/python2.7/dist-packages'

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
    for 'gmshpy'

Let me know if I'm wrong or if there is a patch in a next release
regarding that.

Best regards

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:
>>
>> 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




More information about the gmsh mailing list