Mercurial > hg
comparison setup.py @ 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 | fecbd93a5f08 |
children | 456c37433c43 |
comparison
equal
deleted
inserted
replaced
42073:80103ed2e8ee | 42074:59b1bdf85b1a |
---|---|
1088 else: | 1088 else: |
1089 raise | 1089 raise |
1090 except subprocess.CalledProcessError: | 1090 except subprocess.CalledProcessError: |
1091 raise RustCompilationError( | 1091 raise RustCompilationError( |
1092 "Cargo failed. Working directory: %r, " | 1092 "Cargo failed. Working directory: %r, " |
1093 "command: %r, environment: %r" % (self.rustsrcdir, cmd, env)) | 1093 "command: %r, environment: %r" |
1094 % (self.rustsrcdir, cargocmd, env)) | |
1094 | 1095 |
1095 class RustEnhancedExtension(RustExtension): | 1096 class RustEnhancedExtension(RustExtension): |
1096 """A C Extension, conditionally enhanced with Rust code. | 1097 """A C Extension, conditionally enhanced with Rust code. |
1097 | 1098 |
1098 If the HGRUSTEXT environment variable is set to something else | 1099 If the HGRUSTEXT environment variable is set to something else |