yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #14305
[Bug 1802913] Re: Find Module package and Python 3
Hi,
What would be a possible fix for this?
I wonder if it is something to fix system side or really on yade/cmake side.
Bruno
--
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1802913
Title:
Find Module package and Python 3
Status in Yade:
New
Bug description:
I am using OpenSuse Leap 15.0 and the trunk.git distribution of Yade
so when I want to create the Makefile from the cMake command on a machine using by default python 3 (python 3.6) the Cmake uses the trunk/CMakeLists.txt and at the lines
"find_python_module(minieigen REQUIRED)
find_python_module(Tkinter REQUIRED)"
the command stops at the subroutine FindPythonModule.cmake which is using by default the active python which does not located the right module even if they are installed!! see below
./python3.6/site-packages/minieigen-0.5.4-py3.6.egg-info
./python3.6/site-packages/minieigen.cpython-36m-x86_64-linux-gnu.so
./python2.7/site-packages/minieigen.so
./python2.7/site-packages/minieigen-0.5.4-py2.7.egg-info
I had to modify the command line in the module to force python2:
# EXECUTE_PROCESS(COMMAND "${PYTHON_EXECUTABLE}" "-c"
EXECUTE_PROCESS(COMMAND python2 "-c"
Luc
To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1802913/+subscriptions
Follow ups
References