Skip to content

Commit 4461dda

Browse files
committed
Fix list index out of range with setuptools_rust 1.7.0
setuptools_rust/build.py", line 470, in get_dylib_ext_path host_arch = host_platform.rsplit("-", 1)[1] IndexError: list index out of range Closes #1141
1 parent a4bd0fb commit 4461dda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/pypi/build-wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ def get_python_env_vars(self, env, pypi_env):
583583

584584
# Overrides sysconfig.get_platform and distutils.util.get_platform.
585585
# TODO: consider replacing this with crossenv.
586-
env["_PYTHON_HOST_PLATFORM"] = f"linux_{ABIS[self.abi].uname_machine}"
586+
env["_PYTHON_HOST_PLATFORM"] = f"linux-{ABIS[self.abi].uname_machine}"
587587

588588
@contextmanager
589589
def env_vars(self):

0 commit comments

Comments
 (0)