build: print error message when gyp is not installed

This commit is contained in:
Ben Noordhuis 2012-04-18 13:17:07 -07:00
parent d5acfd0c05
commit 5953129353

6
gyp_uv
View File

@ -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.