Skip to content

Commit aa5ecc4

Browse files
authored
[SDK generation pipeline] fix pipeline failure (#40437)
* debug * update
1 parent e29266f commit aa5ecc4

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

scripts/auto_release/requirement.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ packaging==24.1
66
pytest==6.2.5
77
fastcore==1.3.25
88
tox==4.15.0
9-
wheel
9+
wheel==0.46.1
10+
setuptools==78.1.0

scripts/automation_generate.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#!/bin/bash
22

3-
VIRTUAL_ENV=$TMPDIR/venv-sdk
4-
export VIRTUAL_ENV
5-
PATH="$VIRTUAL_ENV/bin:$PATH"
6-
export PATH
7-
8-
TEMP_FILE="$TMPDIR/venv-sdk/auto_temp.json"
3+
TEMP_FILE="$TMPDIR/auto_temp.json"
94
# generate code
105
python -m packaging_tools.sdk_generator "$1" "$TEMP_FILE" --debug 2>&1
116
echo "[Generate] codegen done!!!"

scripts/automation_init.sh

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
#!/bin/bash
22

3-
# install python3.10
4-
sudo add-apt-repository ppa:deadsnakes/ppa > /dev/null
5-
sudo apt-get install python3.10 > /dev/null
6-
sudo apt-get install python3.10-venv > /dev/null
7-
83
# init env
9-
rm -rf $TMPDIR/venv-sdk > /dev/null
10-
python3.10 -m venv $TMPDIR/venv-sdk > /dev/null
11-
VIRTUAL_ENV=$TMPDIR/venv-sdk
12-
export VIRTUAL_ENV
13-
PATH="$VIRTUAL_ENV/bin:$PATH"
14-
export PATH
154
python -m pip install -U pip > /dev/null
165
python scripts/dev_setup.py -p azure-core > /dev/null
176
pip install tox==4.15.0 > /dev/null
18-
pip install wheel > /dev/null
7+
pip install wheel==0.46.1 > /dev/null
8+
pip install setuptools==78.1.0 > /dev/null
199

2010
# install tsp-client globally (local install may interfere with tooling)
2111
echo Install tsp-client

0 commit comments

Comments
 (0)