-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python build improvements #1316
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1316 +/- ##
==========================================
- Coverage 52.83% 52.83% -0.01%
==========================================
Files 410 411 +1
Lines 52734 52739 +5
==========================================
Hits 27863 27863
- Misses 24871 24876 +5 ☔ View full report in Codecov by Sentry. |
…some issues with a base conda environment
… and status logging
A JSON report has been written to C:\visp-ws\test-pr\visp-SamFlt\visp-build-vc17-bindings\modules\python\bindings\logs\sensor_log.json ================================================== main() File "C:\visp-ws\test-pr\visp-SamFlt\venv\Lib\site-packages\visp_python_bindgen\generator.py", line 174, in main generate_module(generation_path_src, config_path) File "C:\visp-ws\test-pr\visp-SamFlt\venv\Lib\site-packages\visp_python_bindgen\generator.py", line 135, in generate_module submodule.generate() File "C:\visp-ws\test-pr\visp-SamFlt\venv\Lib\site-packages\visp_python_bindgen\submodule.py", line 154, in generate submodule_file.write(format_str) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.496.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'charmap' codec can't encode character '\u03bc' in position 103050: character maps to <undefined> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: la build personnalisée de 'C:\visp-ws\test-pr\visp-SamFlt\visp-build-vc17-bindings\CMakeFi les\27022cb80d68de409fb9a1f1267a3ac9\main.cpp.rule;C:\visp-ws\test-pr\visp-SamFlt\visp-build-vc17-bindings\CMakeFiles\d25447ac6822ec56b31dd8ed2c1fdf26\visp_python_bindings_generator_run.rule' s'est arrêtée. Code 1. [C:\visp -ws\test-pr\visp-SamFlt\visp-build-vc17-bindings\modules\python\visp_python_bindings_generator_run.vcxproj]
…eaders in Python bindings
…leanup log error in python bind gen
…to python_build_improvements
…r code migrated to cpp file, trying to build visp python dll with public interface
…to python_build_improvements
… Joris Vaillant !
…t of json configuration
usage C:\visp-ws\visp\modules\core\include\visp3\core\vpImageTools.h(1589,31): error C2666: 'vpImageTools ::lerp' : les fonctions surchargées ont des conversions similaires. [C:\visp-ws\visp-build-bindings-vc17\modules\python\bindings\_visp.vcxproj]
… and importing directly means that the bindings __init__.py should always be executed, even when generating stubs
You did a really great job, thanks a lot !!! :-) |
This PR brings several small improvements to the Python wrapper build step
make
. Thus, to build the python bindings, one should callmake visp_python_bindings
vpAROgre
: this would require to fully wrap the OGRE classes, and generates some error at compile time