(python): add a little Python PoC
What does this MR do?
- Added a small PoC
PoCPyPrime
to launch a Python script in Sight using PyBind11. - This PoC also shows how to quickly write a Python module in Sight.
-
PoCPyPrime
allows to calculate (thanks to a Python script) the list of prime numbers lower than the value entered in argument.
How to test it?
- Configure, build and run
PoCPyPrime
> ninja PoCPyPrime
> ./bin/pocpyprime.bat 10
Data
No required data
Some results
> bin/pocpyprime.bat 10
sight_log: 2
sight_log: 3
sight_log: 5
sight_log: 7
Additional tests to run
-
Build/run on Windows -
Build/run on Linux -
Build/run on macOS
Associated Issues/Merge Requests
- Issues
- Sight/sight#332
- IRCAD-IHU-RD/meetings#37
- Merde requests
-
Sight/sight!258 -
conan/conan-python!1 -
conan/conan-pybind11!1
-