File tree Expand file tree Collapse file tree 1 file changed +15
-19
lines changed
Expand file tree Collapse file tree 1 file changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -120,27 +120,23 @@ jobs:
120120 - name : Rename wheel with platform tag
121121 run : |
122122 cd dist/bin/libs/wrappers/python/
123- WHEEL_FILE="rtbot.whl"
124- if [ -f "$WHEEL_FILE" ]; then
125- # Extract version from wheel metadata
126- export WHEEL_FILE="rtbot.whl"
123+ export WHEEL_FILE="rtbot.whl"
124+ if [ -f "$WHEEL_FILE" ]; then
127125 VERSION=$(python - <<'EOF'
128- import os, zipfile
129-
130- wheel = os.environ["WHEEL_FILE"]
131- with zipfile.ZipFile(wheel, 'r') as z :
132- for name in z.namelist() :
133- if '.dist-info/METADATA' in name :
134- dist_info_dir = name.split('/')[0]
135- print(
136- dist_info_dir
137- .replace('rtbot-', '')
138- .replace('.dist-info', '')
126+ import os, zipfile
127+ wheel = os.environ["WHEEL_FILE"]
128+ with zipfile.ZipFile(wheel, 'r') as z:
129+ for name in z.namelist():
130+ if '.dist-info/METADATA' in name:
131+ dist_info_dir = name.split('/')[0]
132+ print(
133+ dist_info_dir
134+ .replace('rtbot-', '')
135+ .replace('.dist-info', '')
136+ )
137+ break
138+ EOF
139139 )
140- break
141- EOF
142- )
143-
144140 # Determine platform tag
145141 if [ "${{ runner.os }}" = "Linux" ]; then
146142 PLATFORM="manylinux2014_x86_64"
You can’t perform that action at this time.
0 commit comments