Skip to content

Commit 7b5e389

Browse files
committed
Refactor package_nodejs
1 parent 414a3c1 commit 7b5e389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,9 +884,9 @@ def package_nodejs(c: Context, architecture=None):
884884
_os_platform = _os_platform.replace("-", "_").replace(".", "_").replace(" ", "_")
885885
if _os_platform.startswith("macosx") and platform.machine().lower() == "x86_64":
886886
_os_platform = _os_platform.replace(
887-
"universal2", platform.machine().lower().lower()
887+
"universal2", platform.machine().lower()
888888
)
889-
if sysconfig.get_platform().lower() == "linux-x86_64":
889+
elif sysconfig.get_platform().lower() == "linux-x86_64":
890890
_os_platform = f"manylinux_2_17_{architecture}"
891891
elif sysconfig.get_platform().lower() == "linux-aarch64":
892892
_os_platform = "manylinux_2_17_aarch64.manylinux2014_aarch64"

0 commit comments

Comments
 (0)