Skip to content

Commit 483a497

Browse files
committed
Refactor package_nodejs
1 parent 77d610e commit 483a497

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
@@ -866,9 +866,9 @@ def package_nodejs(c: Context, architecture=None):
866866
_os_platform = _os_platform.replace("-", "_").replace(".", "_").replace(" ", "_")
867867
if _os_platform.startswith("macosx") and platform.machine().lower() == "x86_64":
868868
_os_platform = _os_platform.replace(
869-
"universal2", platform.machine().lower().lower()
869+
"universal2", platform.machine().lower()
870870
)
871-
if sysconfig.get_platform().lower() == "linux-x86_64":
871+
elif sysconfig.get_platform().lower() == "linux-x86_64":
872872
_os_platform = f"manylinux_2_17_{architecture}"
873873
elif sysconfig.get_platform().lower() == "linux-aarch64":
874874
_os_platform = "manylinux_2_17_aarch64.manylinux2014_aarch64"

0 commit comments

Comments
 (0)