Skip to content

Commit 619a289

Browse files
authored
Remove explicit closure install step, the first install command does already seem to install google-closure-compiler-windows at least. (#803)
1 parent 05328c4 commit 619a289

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

emsdk.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,34 +1418,6 @@ def emscripten_npm_install(tool, directory):
14181418
errlog('Error running %s:\n%s' % (e.cmd, e.output))
14191419
return False
14201420

1421-
# Manually install the appropriate native Closure Compiler package
1422-
# This is currently needed because npm ci will install the packages
1423-
# for Closure for all platforms, adding 180MB to the download size
1424-
# There are two problems here:
1425-
# 1. npm ci does not consider the platform of optional dependencies
1426-
# https://github.com/npm/cli/issues/558
1427-
# 2. A bug with the native compiler has bloated the packages from
1428-
# 30MB to almost 300MB
1429-
# https://github.com/google/closure-compiler-npm/issues/186
1430-
# If either of these bugs are fixed then we can remove this exception
1431-
closure_compiler_native = ''
1432-
if LINUX and ARCH in ('x86', 'x86_64'):
1433-
closure_compiler_native = 'google-closure-compiler-linux'
1434-
if MACOS and ARCH in ('x86', 'x86_64'):
1435-
closure_compiler_native = 'google-closure-compiler-osx'
1436-
if WINDOWS and ARCH == 'x86_64':
1437-
closure_compiler_native = 'google-closure-compiler-windows'
1438-
if closure_compiler_native:
1439-
print('Running post-install step: npm install', closure_compiler_native)
1440-
try:
1441-
subprocess.check_output(
1442-
[npm, 'install', '--production', '--no-optional', closure_compiler_native],
1443-
cwd=directory, stderr=subprocess.STDOUT, env=env,
1444-
universal_newlines=True)
1445-
except subprocess.CalledProcessError as e:
1446-
errlog('Error running %s:\n%s' % (e.cmd, e.output))
1447-
return False
1448-
14491421
print('Done running: npm ci')
14501422
return True
14511423

0 commit comments

Comments
 (0)