Merge pull request #459 from embark-framework/vyperWarning

add a warning for vyper installation
This commit is contained in:
Iuri Matias 2018-05-27 07:56:45 -04:00 committed by GitHub
commit c97b0332b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -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}}.",
"Error while downloading the file": "Error while downloading the file",
"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"
}

View File

@ -36,6 +36,14 @@ class Vyper {
return cb();
}
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 = {};
async.each(contractFiles,
function (file, fileCb) {