Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
build: add --without-npm flag to configure script
Browse files Browse the repository at this point in the history
Fixes #2200.
  • Loading branch information
bnoordhuis committed Nov 30, 2011
1 parent 456dafc commit 3ca0517
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion wscript
Expand Up @@ -90,6 +90,13 @@ def set_options(opt):
, dest='efence'
)

opt.add_option( '--without-npm'
, action='store_true'
, default=False
, help='Don\'t install the bundled npm package manager [Release: False]'
, dest='without_npm'
)

opt.add_option( '--without-snapshot'
, action='store_true'
, default=False
Expand Down Expand Up @@ -275,6 +282,7 @@ def configure(conf):
conf.env["USE_SHARED_ZLIB"] = o.shared_zlib or o.shared_zlib_includes or o.shared_zlib_libpath

conf.env["USE_GDBJIT"] = o.use_gdbjit
conf.env['USE_NPM'] = not o.without_npm

if not conf.env["USE_SHARED_ZLIB"] and not sys.platform.startswith("win32"):
conf.env.append_value("LINKFLAGS", "-lz")
Expand Down Expand Up @@ -969,7 +977,9 @@ def build(bld):
bld.install_files('${PREFIX}/bin/', 'tools/node-waf', chmod=0755)
bld.install_files('${LIBDIR}/node/wafadmin', 'tools/wafadmin/*.py')
bld.install_files('${LIBDIR}/node/wafadmin/Tools', 'tools/wafadmin/Tools/*.py')
install_npm(bld)

if bld.env['USE_NPM']:
install_npm(bld)

def install_npm(bld):
start_dir = bld.path.find_dir('deps/npm')
Expand Down

0 comments on commit 3ca0517

Please sign in to comment.