Lines Matching +full:python +full:- +full:is +full:- +full:python3
4 # 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
23 ( cd $DEST/generator; python3 -m PyInstaller nanopb_generator.py )
24 ( cd $DEST/generator; python3 -m PyInstaller protoc )
25 mv $DEST/generator/dist/nanopb_generator $DEST/generator-bin
26 cp $DEST/generator/dist/protoc/protoc.exe $DEST/generator-bin
29 cp -pr $(python3 -c 'import grpc_tools, os.path; print(os.path.dirname(grpc_tools.__file__))')/_pro…
30 cp -pr $DEST/generator/proto $DEST/generator-bin/proto
33 rm -rf $DEST/generator/dist $DEST/generator/build $DEST/generator/*.spec
36 cp $DEST/generator-bin/nanopb_generator.exe $DEST/generator-bin/protoc-gen-nanopb.exe
39 find $DEST -name '*.c' -o -name '*.h' -o -name '*.txt' \
40 -o -name '*.proto' -o -name '*.py' -o -name '*.options' \
41 -exec sed -i 's/$/\r/' '{}' \;
44 ( cd dist; rm -f $VERSION.zip; powershell "Compress-Archive $VERSION $VERSION.zip" )