We have a Python API for jobmodules!
Created a Boost.Python module interface in libcalamares. Added a PythonJob wrapper and exposed it in the Python module. Rename target calamareslib ==> calamares so in Python it's libcalamares. Python-related classes in libcalamares that aren't exported as C++ symbols are now in a CalamaresPrivate namespace. Import the libcalamares python module into every Python script before running it. Added Python error handling to PythonJobHelper. Added some more testing code to dummypython module.
Showing
- CMakeLists.txt 4 additions, 4 deletionsCMakeLists.txt
- CalamaresConfig.cmake.in 1 addition, 1 deletionCalamaresConfig.cmake.in
- src/libcalamares/CMakeLists.txt 7 additions, 7 deletionssrc/libcalamares/CMakeLists.txt
- src/libcalamares/JobQueue.cpp 1 addition, 1 deletionsrc/libcalamares/JobQueue.cpp
- src/libcalamares/PythonJob.cpp 36 additions, 4 deletionssrc/libcalamares/PythonJob.cpp
- src/libcalamares/PythonJob.h 9 additions, 4 deletionssrc/libcalamares/PythonJob.h
- src/libcalamares/PythonJobApi.cpp 42 additions, 0 deletionssrc/libcalamares/PythonJobApi.cpp
- src/libcalamares/PythonJobApi.h 44 additions, 0 deletionssrc/libcalamares/PythonJobApi.h
- src/libcalamares/PythonJobHelper.cpp 57 additions, 1 deletionsrc/libcalamares/PythonJobHelper.cpp
- src/libcalamares/PythonJobHelper.h 8 additions, 2 deletionssrc/libcalamares/PythonJobHelper.h
- src/modules/dummypython/main.py 8 additions, 1 deletionsrc/modules/dummypython/main.py
Loading
Please register or sign in to comment