Skip to content
Snippets Groups Projects
  1. Jun 01, 2023
  2. May 25, 2023
  3. May 24, 2023
  4. May 23, 2023
  5. May 16, 2023
  6. Mar 09, 2023
  7. Mar 07, 2023
  8. Jan 16, 2023
  9. Jan 26, 2022
  10. Jan 25, 2022
  11. Dec 02, 2021
  12. Nov 29, 2021
  13. Nov 22, 2021
  14. Oct 26, 2021
  15. Jun 30, 2021
  16. Jun 17, 2021
  17. Nov 18, 2020
  18. Nov 09, 2020
  19. Nov 08, 2020
  20. Jul 23, 2020
  21. Mar 02, 2020
  22. Feb 20, 2020
  23. Jan 10, 2020
  24. Dec 16, 2019
  25. Dec 09, 2019
  26. Dec 06, 2019
  27. Nov 13, 2019
    • Studer Gabriel's avatar
      Initial Python 3 port commit · 6e60b71d
      Studer Gabriel authored
      This commit doesn't make OpenStructure work with Python 3. The goal of this
      commit was to perform an automated port of the Python code and make it compile.
      The performed steps:
      
      - Edited CMakeLists.txt to search for Python with 3.6 as min version 3.6 is the
        Python version shipped by default with Ubuntu 18.04 LTS
      - Add version 3.6 to cmake_support/FindPython.cmake
      - Adapt setup_boost macro in cmake_support/OST.cmake to prefer versioned
        libraries and not first check for boost_python.so. In the example of
        Ubuntu 18.04, libboost_python.so is specific for Python 2 but
        libboost_python3.so is the one we want.
      - apply the following command: 2to3-2.7 -n -w <OST_DIR>
      - adapt base/pymod/wrap_base.cc, gui/pymod/wrap_gui.cc and
        gui/pymod/export_message_widget.cc as PyString functionalities do not exist
        anymore in the Python 3 interpreter (replaced by PyUnicode)
      - adapt gui/src/python_shell/python_interpreter_worker.hh to resolve issue
        discussed in https://stackoverflow.com/questions/23068700/embedding-python3-in-qt-5
        Long story short: Qt does a typedef for "slots" which causes trouble with
        other headers that are pulled in from the Python interpreter
      6e60b71d
  28. Jul 02, 2019
  29. Jan 15, 2019
  30. Jan 10, 2019
  31. Oct 23, 2018
Loading