Error with Binding.Exec and script=True
I'm seeing an error like this when I try to build a package with binding=Binding.Exec, script=True
File "/home/mcgibbon/projects/execgraph/setup.py", line 4, in <module>
setup(
File "/nix/store/5v7jxy46vg7jlj7hiz34dlkbk74xvzvp-python3.9-setuptools-54.2.0/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/nix/store/ph6hpbx4pr31146wpb72yrk3f3yy0xcs-python3-3.9.4/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/setuptools_ext.py", line 103, in run
build_rust.run()
File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/command.py", line 52, in run
self.run_for_extension(ext)
File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/build.py", line 93, in run_for_extension
self.install_extension(ext, dylib_paths)
File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/build.py", line 309, in install_extension
ext.install_script(ext_path)
File "/nix/store/9zcyinf104z2fwdh2q760llzpv6phzzv-python3.9-setuptools-rust-0.12.1/lib/python3.9/site-packages/setuptools_rust/extension.py", line 173, in install_script
f.write(TMPL.format({"name": name}))
KeyError: 'name'
Any ideas?
From playing around in the interpreter, I think perhaps https://github.com/PyO3/setuptools-rust/blob/main/setuptools_rust/extension.py#L187
is not correct, and it should be
f.write(TMPL.format(name=name))
rather than
f.write(TMPL.format({"name": name}))
Thanks for reporting and troubleshooting, I've opened #154 to address this.
Is there a date that release the fix version?
Sorry for the delay, I'm hoping to prepare a 1.0 release for setuptools_rust soon; I've just had a ton of stuff on.
No ETA but I really hope within a month.
Sorry for the delay, I'm hoping to prepare a 1.0 release for
setuptools_rustsoon; I've just had a ton of stuff on.No ETA but I really hope within a month.
Thx