Skip to content

Commit ce2ec9b

Browse files
authored
fix: use invoke to build protos (#1546)
* use invoke to build protos * update to ADO * correct windows dir * remove invoke as req dep
1 parent 97d0e0a commit ce2ec9b

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

pack/scripts/mac_arm64_deps.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ source .env/bin/activate
55
python -m pip install --upgrade pip
66

77
python -m pip install .
8-
98
python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps"
10-
cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps"
9+
10+
python -m pip install invoke
11+
cd tests
12+
python -m invoke -c test_setup build-protos
13+
14+
cd ..
15+
cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps"
16+
cp azure_functions_worker/protos/FunctionRpc_pb2_grpc.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos"
17+
cp azure_functions_worker/protos/FunctionRpc_pb2.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos"

pack/scripts/nix_deps.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ source .env/bin/activate
55
python -m pip install --upgrade pip
66

77
python -m pip install .
8-
98
python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps"
10-
cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps"
9+
10+
python -m pip install invoke
11+
cd tests
12+
python -m invoke -c test_setup build-protos
13+
14+
cd ..
15+
cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps"
16+
cp azure_functions_worker/protos/FunctionRpc_pb2_grpc.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos"
17+
cp azure_functions_worker/protos/FunctionRpc_pb2.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos"

pack/scripts/win_deps.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ python -m pip install --upgrade pip
55
python -m pip install .
66

77
$depsPath = Join-Path -Path $env:BUILD_SOURCESDIRECTORY -ChildPath "deps"
8+
$protosPath = Join-Path -Path $depsPath -ChildPath "azure_functions_worker/protos"
89

910
python -m pip install . azure-functions --no-compile --target $depsPath.ToString()
11+
12+
python -m pip install invoke
13+
cd tests
14+
python -m invoke -c test_setup build-protos
15+
16+
cd ..
1017
Copy-Item -Path ".artifactignore" -Destination $depsPath.ToString()
18+
Copy-Item -Path "azure_functions_worker/protos/FunctionRpc_pb2_grpc.py" -Destination $protosPath.ToString()
19+
Copy-Item -Path "azure_functions_worker/protos/FunctionRpc_pb2.py" -Destination $protosPath.ToString()

0 commit comments

Comments
 (0)