From 595312935326883da433d9bdaf9e3bcf2b58d27b Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 18 Apr 2012 13:17:07 -0700 Subject: [PATCH] build: print error message when gyp is not installed --- gyp_uv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gyp_uv b/gyp_uv index 225c9768..14a3cae7 100755 --- a/gyp_uv +++ b/gyp_uv @@ -8,7 +8,11 @@ script_dir = os.path.dirname(__file__) uv_root = os.path.normpath(script_dir) sys.path.insert(0, os.path.join(uv_root, 'build', 'gyp', 'pylib')) -import gyp +try: + import gyp +except ImportError: + print('You need to install gyp in build/gyp first. See the README.') + sys.exit(42) # Directory within which we want all generated files (including Makefiles) # to be written.