# HG changeset patch # User Philippe Pepiot # Date 1554385248 -7200 # Node ID 59b1bdf85b1a8cb476199e452c1235f125b3de67 # Parent 80103ed2e8eef06586dbcecf20796bcf7d25dd57 setup: fix a possible NameError on rust build File "setup.py", line 975, in rustbuild "command: %r, environment: %r" % (self.rustsrcdir, cmd, env)) NameError: global name 'cmd' is not defined diff -r 80103ed2e8ee -r 59b1bdf85b1a setup.py --- a/setup.py Mon Apr 01 22:11:54 2019 -0700 +++ b/setup.py Thu Apr 04 15:40:48 2019 +0200 @@ -1090,7 +1090,8 @@ except subprocess.CalledProcessError: raise RustCompilationError( "Cargo failed. Working directory: %r, " - "command: %r, environment: %r" % (self.rustsrcdir, cmd, env)) + "command: %r, environment: %r" + % (self.rustsrcdir, cargocmd, env)) class RustEnhancedExtension(RustExtension): """A C Extension, conditionally enhanced with Rust code.