Skip to content

Commit fad944e

Browse files
committed
bump version to v4.11.6
1 parent c582333 commit fad944e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

maix/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
version_major = 4
55
version_minor = 11
6-
version_patch = 5
6+
version_patch = 6
77

88
__version__ = "{}.{}.{}".format(version_major, version_minor, version_patch)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20250728
1+
20250729

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,12 @@ 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-
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:
292+
if not os.path.exists(wheel_path):
293+
wheel_path_lower = "dist/temp/maixpy-{}.dist-info/WHEEL".format(__version__)
294+
if os.path.exists(wheel_path_lower):
295+
# rename this dir to MaixPy-<version>.dist-info
296+
os.rename("dist/temp/maixpy-{}.dist-info".format(__version__), "dist/temp/MaixPy-{}.dist-info".format(__version__))
297+
with open(wheel_path, "r", encoding="utf-8") as f:
296298
lines = f.readlines()
297299
os.makedirs(os.path.dirname(wheel_path), exist_ok=True)
298300
with open(wheel_path, "w", encoding="utf-8") as f:

0 commit comments

Comments
 (0)