Mercurial > hg
changeset 42074:59b1bdf85b1a
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
author | Philippe Pepiot <philippe.pepiot@logilab.fr> |
---|---|
date | Thu, 04 Apr 2019 15:40:48 +0200 |
parents | 80103ed2e8ee |
children | 456c37433c43 |
files | setup.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.