Home
last modified time | relevance | path

Searched +full:python +full:- +full:is +full:- +full:python3 (Results 1 – 8 of 8) sorted by relevance

/nanopb-latest/.github/workflows/
Dolddistro_tests.yml8 - '**.py'
11 - '**.py'
15 name: Test with Python 3 on Ubuntu 20.04
16 runs-on: ubuntu-20.04
19 - name: Check out code from GitHub
23 fetch-depth: "0"
25 - name: Install dependencies from apt-get
28 sudo apt-get update
29 sudo apt-get install python3-protobuf protobuf-compiler scons python-is-python3
31 - name: Run tests with Python 3
/nanopb-latest/tools/
Dmake_windows_package.sh4 # for Windows users. This script is designed to run under MingW/MSYS bash
7 set -e
8 set -x
10 VERSION=`git describe --always`-windows-x86
13 rm -rf $DEST
14 mkdir -p $DEST
17 git archive HEAD | tar x -C $DEST
19 # Rebuild the Python .proto files and .pyc
20 ( cd $DEST/generator; python3 nanopb_generator.py ||: )
22 # Package the Python libraries
[all …]
/nanopb-latest/generator/
Dprotoc1 #!/usr/bin/env python3
2 # This file acts as a drop-in replacement of binary protoc.exe.
3 # It will use either Python-based protoc from grpcio-tools package,
4 # or if it is not available, protoc.exe from path if found.
10 # Depending on how this script is run, we may or may not have PEP366 package name
18 # Get path of the directory where this script is stored.
30 # Add argument for finding the nanopb generator when using --nanopb_out=
32 if os.path.isfile(os.path.join(mypath, "protoc-gen-nanopb.exe")):
33 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.exe")
35 protoc_gen_nanopb = os.path.join(mypath, "protoc-gen-nanopb.bat")
[all …]
Dnanopb_generator.py1 #!/usr/bin/env python3
2 # kate: replace-tabs on; indent-width 4;
7 nanopb_version = "nanopb-1.0.0-dev"
20 # Python-protobuf breaks easily with protoc version differences if
21 # using the cpp or upb implementation. Force it to use pure Python
22 # implementation. Performance is not very important in the generator.
24 os.putenv("PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION", "python")
25 os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = "python"
28 # Make sure grpc_tools gets included in binary package if it is available
42 *** Could not import the Google protobuf Python libraries ***
[all …]
/nanopb-latest/
DCMakeLists.txt5 set(nanopb_VERSION_STRING ${PROJECT_NAME}-${${PROJECT_NAME}_VERSION}-dev)
8 string(REPLACE "nanopb-" "" nanopb_VERSION ${nanopb_VERSION_STRING})
17 set(nanopb_PYTHON_INSTDIR_OVERRIDE "" CACHE PATH "Override the default python installation director…
19 find_program(nanopb_PROTOC_PATH protoc PATHS generator-bin generator NO_DEFAULT_PATH)
45 # Determine Python module installation path
47 find_package(Python REQUIRED COMPONENTS Interpreter)
52 message(STATUS "Python install dir: ${PYTHON_INSTDIR}")
54 # Package nanopb generator as Python module 'nanopb'
56 # Copy Python code files related to the generator
58 COMMAND ${CMAKE_COMMAND} -E make_directory
[all …]
DCHANGELOG.txt1 nanopb-0.4.9.1 (2024-12-01)
2 Fix memory not released on error return from pb_decode_ex() (GHSA-xwqq-qxmw-hj5r)
4 Fix compiler error with enums and --c-style (#1014)
7 nanopb-0.4.9 (2024-09-19)
9 Fix Python pkg_resources deprecation (#887)
12 Discard autogenerated map entry types if the field is skipped (#956)
26 nanopb-0.4.8 (2023-11-11)
29 Use UTF-8 encoding for generated files irrespective of locale (#868)
45 nanopb-0.4.7 (2022-12-11)
51 Fix wrong format in Python Poetry project file (#811)
[all …]
/nanopb-latest/docs/
Dmigration.md9 Nanopb-1.0.0 (2025-xx-xx)
10 -------------------------
12 ### Remove Python 2 support
14 **Rationale:** Python 2 interpreter was deprecated in 2020. For backward
16 Python 2 for the 0.4.x series. That has required several tricks that
19 **Changes:** Removed Python 2 support files and code hacks needed to
22 **Required actions:** Upgrade to Python 3 and ensure `python-protobuf`
23 is installed.
25 Nanopb-0.4.9 (2024-09-19)
26 -------------------------
[all …]
/nanopb-latest/tests/site_scons/site_tools/
Dnanopb.py8 -------------
17 ---------------------
18 Normally, this script is used in the test environment of nanopb and it locates
19 the nanopb generator by a relative path. If this script is used in another
28 env.SetDefault(PROTOCFLAGS = "--plugin=protoc-gen-nanopb=path/to/protoc-gen-nanopb")
63 '''Find Python executable to use.'''
64 if 'PYTHON' in env:
65 return env['PYTHON']
67 p = env.WhereIs('python3')
73 return env['ESCAPE'](p) + " -3"
[all …]