diff options
| author | Mathis Logemann <mathisloge@gmail.com> | 2021-06-23 03:24:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-22 18:24:13 -0700 |
| commit | 08690d82c11eaea801c103238cc2e948b1a60eb5 (patch) | |
| tree | 4fc4262ea321babbeaa467fe17e79dd8e4d308f8 /ports/nanopb/fix-python.patch | |
| parent | c5ac711fefa6cacbd6bb6335349e36a765babf87 (diff) | |
| download | vcpkg-08690d82c11eaea801c103238cc2e948b1a60eb5.tar.gz vcpkg-08690d82c11eaea801c103238cc2e948b1a60eb5.zip | |
[nanopb] update to 0.4.5 and add generator (#18241)
* [nanopb] update to 0.4.5 and add generator
* add versions
* fix python install?
* update version
* fix python? again
* version
* test python
* add version
* fix portfile
* version
* Update ports/nanopb/portfile.cmake
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
* Update ports/nanopb/portfile.cmake
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
* update version
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
Diffstat (limited to 'ports/nanopb/fix-python.patch')
| -rw-r--r-- | ports/nanopb/fix-python.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ports/nanopb/fix-python.patch b/ports/nanopb/fix-python.patch new file mode 100644 index 000000000..f82293099 --- /dev/null +++ b/ports/nanopb/fix-python.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d9c5e5e..4e94bb7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -41,7 +41,6 @@ endif()
+ if(nanopb_BUILD_GENERATOR)
+ set(generator_protos nanopb)
+
+- find_package(Python REQUIRED)
+ execute_process(
+ COMMAND ${Python_EXECUTABLE} -c
+ "from distutils import sysconfig; print(sysconfig.get_python_lib(prefix=''))"
+@@ -64,10 +63,10 @@ if(nanopb_BUILD_GENERATOR)
+ DESTINATION ${PYTHON_INSTDIR}/proto/
+ )
+ endforeach()
++ install( FILES generator/proto/_utils.py
++ DESTINATION ${PYTHON_INSTDIR}/proto/ )
+ endif()
+
+-install( FILES generator/proto/_utils.py
+- DESTINATION ${PYTHON_INSTDIR}/proto/ )
+
+ if( WIN32 )
+ install(
|
