mirror of https://github.com/embarklabs/embark.git
Merge pull request #459 from embark-framework/vyperWarning
add a warning for vyper installation
This commit is contained in:
commit
c97b0332b7
|
@ -127,5 +127,11 @@
|
||||||
"Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}:{{port}}.": "Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}:{{port}}.",
|
"Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}:{{port}}.": "Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}:{{port}}.",
|
||||||
"Error while downloading the file": "Error while downloading the file",
|
"Error while downloading the file": "Error while downloading the file",
|
||||||
"Error while loading the content of ": "Error while loading the content of ",
|
"Error while loading the content of ": "Error while loading the content of ",
|
||||||
"no contracts found": "no contracts found"
|
"no contracts found": "no contracts found",
|
||||||
|
"Installing packages...": "Installing packages...",
|
||||||
|
"Next steps:": "Next steps:",
|
||||||
|
"open another console in the same directory and run": "open another console in the same directory and run",
|
||||||
|
"For more info go to http://embark.status.im": "For more info go to http://embark.status.im",
|
||||||
|
"%s is not installed on your machine": "%s is not installed on your machine",
|
||||||
|
"You can install it by visiting: %s": "You can install it by visiting: %s"
|
||||||
}
|
}
|
|
@ -36,6 +36,14 @@ class Vyper {
|
||||||
return cb();
|
return cb();
|
||||||
}
|
}
|
||||||
self.logger.info(__("compiling Vyper contracts") + "...");
|
self.logger.info(__("compiling Vyper contracts") + "...");
|
||||||
|
|
||||||
|
const vyper = shelljs.which('vyper');
|
||||||
|
if (!vyper) {
|
||||||
|
self.logger.warn(__('%s is not installed on your machine', 'Vyper'));
|
||||||
|
self.logger.info(__('You can install it by visiting: %s', 'https://vyper.readthedocs.io/en/latest/installing-vyper.html'));
|
||||||
|
return cb();
|
||||||
|
}
|
||||||
|
|
||||||
const compiled_object = {};
|
const compiled_object = {};
|
||||||
async.each(contractFiles,
|
async.each(contractFiles,
|
||||||
function (file, fileCb) {
|
function (file, fileCb) {
|
||||||
|
|
Loading…
Reference in New Issue