Menu

#194 Unable to enable python support on 3.2.1

3.2.2
closed
None
2019-12-17
2019-11-18
No

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

Discussion

  • Helfer Thomas

    Helfer Thomas - 2019-11-18

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

    cmake ../tfel-3.2.1 -DCMAKE_BUILD_TYPE=Release -Dlocal-castem-header=ON -Denable-aster=ON -Denable-abaqus=ON -Denable-calculix=ON -Denable-ansys=ON -Denable-europlexus=ON -Denable-python=ON -Denable-python-bindings=ON -Denable-comsol=ON -Denable-diana-fea=ON -DPython_ADDITIONAL_VERSIONS=3.6 -DCMAKE_INSTALL_PREFIX=/home/tom/codes/tfel/3.2.1/install
    

    I did this on FreeBSD 12.0...

    Two questions:

    • have you installed boot python ?
    • what is the release of FreeBSD that you use ?

    Best,
    Thomas

     
  • Pedro F. Giffuni

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

     
  • Helfer Thomas

    Helfer Thomas - 2019-11-19

    Hi Pedro,
    I am commited to make a TFEL works nicely in FreebBSD.
    I'll give FreeBSD 12.1 a try today.
    Best,
    Thomas

     
  • Pedro F. Giffuni

    Hi;
    Can you try this?

    -Denable-python:BOOL=TRUE -Denable-python-bindings:BOOL=TRUE

    It is actually what our ports tree does.

     
  • Helfer Thomas

    Helfer Thomas - 2019-11-24

    I did !
    However I did not have the time to test FreeBSD 12.1

     
  • Helfer Thomas

    Helfer Thomas - 2019-11-24

    It just remind me that FindBoost has a nasty bug in 1.70. Are you using this version ?

     
    • Pedro F. Giffuni

      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.

       
      • Helfer Thomas

        Helfer Thomas - 2019-11-27

        May I ask what is the workaround ?

         
        • Pedro F. Giffuni

          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.

           
  • Helfer Thomas

    Helfer Thomas - 2019-12-17
    • status: open --> closed
    • assigned_to: Helfer Thomas
     
  • Helfer Thomas

    Helfer Thomas - 2019-12-17

    Closed as related to FreeBSD port mechanism

     
  • Pedro F. Giffuni

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

     
  • Helfer Thomas

    Helfer Thomas - 2019-12-17

    That's really strange, I don't have any trouble...
    Anyway, thanks for your effort in packaging TFEL/MFront !

     

Log in to post a comment.