diff --git a/pack/scripts/mac_arm64_deps.sh b/pack/scripts/mac_arm64_deps.sh index f0490ed0..e71ad197 100644 --- a/pack/scripts/mac_arm64_deps.sh +++ b/pack/scripts/mac_arm64_deps.sh @@ -5,6 +5,13 @@ source .env/bin/activate python -m pip install --upgrade pip python -m pip install . - python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps" -cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps" \ No newline at end of file + +python -m pip install invoke +cd tests +python -m invoke -c test_setup build-protos + +cd .. +cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps" +cp azure_functions_worker/protos/FunctionRpc_pb2_grpc.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos" +cp azure_functions_worker/protos/FunctionRpc_pb2.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos" \ No newline at end of file diff --git a/pack/scripts/nix_deps.sh b/pack/scripts/nix_deps.sh index f0490ed0..e71ad197 100644 --- a/pack/scripts/nix_deps.sh +++ b/pack/scripts/nix_deps.sh @@ -5,6 +5,13 @@ source .env/bin/activate python -m pip install --upgrade pip python -m pip install . - python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps" -cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps" \ No newline at end of file + +python -m pip install invoke +cd tests +python -m invoke -c test_setup build-protos + +cd .. +cp .artifactignore "$BUILD_SOURCESDIRECTORY/deps" +cp azure_functions_worker/protos/FunctionRpc_pb2_grpc.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos" +cp azure_functions_worker/protos/FunctionRpc_pb2.py "$BUILD_SOURCESDIRECTORY/deps/azure_functions_worker/protos" \ No newline at end of file diff --git a/pack/scripts/win_deps.ps1 b/pack/scripts/win_deps.ps1 index b0872e40..ec4f215a 100644 --- a/pack/scripts/win_deps.ps1 +++ b/pack/scripts/win_deps.ps1 @@ -5,6 +5,15 @@ python -m pip install --upgrade pip python -m pip install . $depsPath = Join-Path -Path $env:BUILD_SOURCESDIRECTORY -ChildPath "deps" +$protosPath = Join-Path -Path $depsPath -ChildPath "azure_functions_worker/protos" python -m pip install . azure-functions --no-compile --target $depsPath.ToString() + +python -m pip install invoke +cd tests +python -m invoke -c test_setup build-protos + +cd .. Copy-Item -Path ".artifactignore" -Destination $depsPath.ToString() +Copy-Item -Path "azure_functions_worker/protos/FunctionRpc_pb2_grpc.py" -Destination $protosPath.ToString() +Copy-Item -Path "azure_functions_worker/protos/FunctionRpc_pb2.py" -Destination $protosPath.ToString()