Skip to content

Commit 1a71314

Browse files
committed
Refactor package_nodejs
1 parent d7f3326 commit 1a71314

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,9 @@ def package_nodejs(c: Context, architecture=None):
874874
_os_platform = _os_platform.replace("-", "_").replace(".", "_").replace(" ", "_")
875875
if _os_platform.startswith("macosx") and platform.machine().lower() == "x86_64":
876876
_os_platform = _os_platform.replace(
877-
"universal2", platform.machine().lower().lower()
877+
"universal2", platform.machine().lower()
878878
)
879-
if sysconfig.get_platform().lower() == "linux-x86_64":
879+
elif sysconfig.get_platform().lower() == "linux-x86_64":
880880
_os_platform = f"manylinux_2_17_{architecture}"
881881
elif sysconfig.get_platform().lower() == "linux-aarch64":
882882
_os_platform = "manylinux_2_17_aarch64.manylinux2014_aarch64"

0 commit comments

Comments
 (0)