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
--- 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.