We don't need to force updating to latest npm.

This commit is contained in:
Cheng Zhao 2013-07-01 16:06:37 +08:00
parent f510f77b98
commit 74fe79ce62

View file

@ -21,10 +21,10 @@ def main():
args = parse_args() args = parse_args()
update_submodules() update_submodules()
bootstrap_brightray(args.url) bootstrap_brightray(args.url)
update_node_modules()
if sys.platform == 'cygwin': if sys.platform == 'cygwin':
update_win32_python() update_win32_python()
update_atom_shell() update_atom_shell()
update_npm()
def parse_args(): def parse_args():
@ -49,6 +49,10 @@ def bootstrap_brightray(url):
subprocess.check_call([sys.executable, bootstrap, url]) subprocess.check_call([sys.executable, bootstrap, url])
def update_node_modules():
subprocess.check_call(['npm', 'install', '--silent'])
def update_win32_python(): def update_win32_python():
with scoped_cwd(VENDOR_DIR): with scoped_cwd(VENDOR_DIR):
if not os.path.exists('python_26'): if not os.path.exists('python_26'):
@ -63,12 +67,5 @@ def update_atom_shell():
subprocess.check_call([sys.executable, update]) subprocess.check_call([sys.executable, update])
def update_npm():
subprocess.check_call(['npm', 'install', 'npm', '--silent'])
npm = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'npm')
subprocess.check_call([npm, 'install', '--silent'])
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())