On FreeBSD, even after setting the arguments with
-Denable-python=ON -Denable-python-bindings=ON
(which used to work in 3.1.x version)
when I look at CMakeCache.txt
...
//enable python support
enable-python:BOOL=OFF
//enable python bindings support
enable-python-bindings:BOOL=OFF
...
Hi Pedro,
Thanks for reporting the issue.
However, I can't reproduce it.
I successfully tested the master branch last week and the 3.2.1 release this morning....
I did this on FreeBSD 12.0...
Two questions:
Best,
Thomas
Hi;
Boost python is installed and I am using FreeBSD 12.1 but I doubt the FreeBSD version is relevant..
If it works for you then It may be a pilot (mine) error: I am updating the FreeBSD port and the method I used to set up the python build is not working anymore. I am attaching my latest port attempt in case you want to try.
Alternatively feel free to close the ticket: you are not excpected to have to clean my mistakes :).
Hi Pedro,
I am commited to make a TFEL works nicely in FreebBSD.
I'll give FreeBSD 12.1 a try today.
Best,
Thomas
Hi;
Can you try this?
-Denable-python:BOOL=TRUE -Denable-python-bindings:BOOL=TRUE
It is actually what our ports tree does.
I did !
However I did not have the time to test FreeBSD 12.1
It just remind me that FindBoost has a nasty bug in 1.70. Are you using this version ?
I have
py27-boost-libs-1.71.0
py36-boost-libs-1.71.0
In any case ... we added a workaround to the FreeBSd port and it works for now.
It was just committed.
May I ask what is the workaround ?
You may ask, but its a workaround because I don't understand it.
In the tfel port Makefile we used to have this:
PYTHON_CMAKE_ARGS=
-Denable-python=ON -Denable-python-bindings=ON
it stopped working and the documended recommendation is to use this:
PYTHON_CMAKE_ON= enable-python enable-python-bindings
which also doesn't work. The same format does work for the calculix and aster options.
However using this works:
PYTHON_CMAKE_ON= -Denable-python=ON -Denable-python-bindings=ON
So I have to check with ports developers to see what is going on here.
Closed as related to FreeBSD port mechanism
I agree with closing the ticket .. thanks!
For the record though, the problem escalated: with python3 it doesn't detect some headers so I had to disable the python option for the port altogether. :(.
That's really strange, I don't have any trouble...
Anyway, thanks for your effort in packaging TFEL/MFront !