Skip to content

Commit 8acbca3

Browse files
committed
fix pypi upload error
1 parent e8cba19 commit 8acbca3

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/release_maixcam.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
git clone https://github.com/sipeed/MaixCDK --depth=1
3737
export MAIXCDK_PATH=`pwd`/MaixCDK
3838
cd $maixpy_path
39-
python -m pip install -U pip setuptools wheel twine
39+
python -m pip install -U pip setuptools wheel twine packaging
4040
python -m pip install -r $MAIXCDK_PATH/requirements.txt
4141
python -m pip install pybind11-stubgen
4242
echo "--------------------------------"

.github/workflows/release_other_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
git clone https://github.com/sipeed/MaixCDK --depth=1
3333
export MAIXCDK_PATH=`pwd`/MaixCDK
3434
cd $pwd_path
35-
python -m pip install -U pip setuptools wheel twine
35+
python -m pip install -U pip setuptools wheel twine packaging
3636
python -m pip install -r $MAIXCDK_PATH/requirements.txt
3737
python -m pip install pybind11-stubgen
3838
echo "--------------------------------"

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,10 @@ def has_ext_modules(foo):
289289
with zipfile.ZipFile(os.path.join("dist", name), "r") as zip_ref:
290290
zip_ref.extractall("dist/temp")
291291
wheel_path = "dist/temp/MaixPy-{}.dist-info/WHEEL".format(__version__)
292-
if not os.path.exists(wheel_path):
293-
wheel_path = "dist/temp/maixpy-{}.dist-info/WHEEL".format(__version__)
294-
with open(wheel_path, "r", encoding="utf-8") as f:
292+
wheel_path_r = wheel_path
293+
if not os.path.exists(wheel_path_r):
294+
wheel_path_r = "dist/temp/maixpy-{}.dist-info/WHEEL".format(__version__)
295+
with open(wheel_path_r, "r", encoding="utf-8") as f:
295296
lines = f.readlines()
296297
with open(wheel_path, "w", encoding="utf-8") as f:
297298
for line in lines:

0 commit comments

Comments
 (0)