setup: fix a possible NameError on rust build
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 04 Apr 2019 15:40:48 +0200
changeset 42074 59b1bdf85b1a
parent 42073 80103ed2e8ee
child 42075 456c37433c43
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
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.