Skip to content

Commit 69caaae

Browse files
authored
Copy __init__.py for azure + install azure-functions (#479)
1 parent b6b740a commit 69caaae

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

pack/scripts/nix_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ python -m venv .env
44
source .env/bin/activate
55
python -m pip install .
66

7-
python -m pip install . --no-compile --target "$BUILD_SOURCESDIRECTORY/deps"
7+
python -m pip install . azure-functions --no-compile --target "$BUILD_SOURCESDIRECTORY/deps"

pack/scripts/win_deps.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ python -m pip install .
44

55
$depsPath = Join-Path -Path $env:BUILD_SOURCESDIRECTORY -ChildPath "deps"
66

7-
python -m pip install . --no-compile --target $depsPath.ToString()
7+
python -m pip install . azure-functions --no-compile --target $depsPath.ToString()

pack/templates/nix_env_gen.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ jobs:
1919
inputs:
2020
disableAutoCwd: true
2121
scriptPath: 'pack/scripts/nix_deps.sh'
22+
- task: CopyFiles@2
23+
inputs:
24+
contents: |
25+
azure/__init__.py
26+
targetFolder: '$(Build.ArtifactStagingDirectory)/deps/azure'
27+
flattenFolders: true
2228
- task: CopyFiles@2
2329
inputs:
2430
contents: |

pack/templates/win_env_gen.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ jobs:
1818
- task: PowerShell@2
1919
inputs:
2020
filePath: 'pack\scripts\win_deps.ps1'
21+
- task: CopyFiles@2
22+
inputs:
23+
contents: |
24+
azure\__init__.py
25+
targetFolder: '$(Build.ArtifactStagingDirectory)\deps\azure'
26+
flattenFolders: true
2127
- task: CopyFiles@2
2228
inputs:
2329
contents: |

0 commit comments

Comments
 (0)