Skip to content

Commit 94f6781

Browse files
committed
Experiment with plat_name for debugging
1 parent d7f3736 commit 94f6781

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setuptools_rust/setuptools_ext.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ def run(self) -> None:
163163
build_rust.inplace = self.inplace
164164
build_rust.target = self.target
165165
build_rust.verbose = self.verbose
166-
options = self.distribution.get_cmdline_options().get("bdist_wheel", {})
167-
plat_name = options.get("plat-name") or self.plat_name
166+
167+
bdist_wheel = self.distribution.get_command_obj("bdist_wheel")
168+
plat_name = bdist_wheel.plat_name or self.plat_name
168169
build_rust.plat_name = plat_name
169170
build_rust.run()
170171

0 commit comments

Comments
 (0)