Skip to content

Commit

Permalink
Hotfix: spaces in path
Browse files Browse the repository at this point in the history
  • Loading branch information
panther7 committed Oct 26, 2023
1 parent 6232784 commit 82d7bb1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,18 +313,18 @@ function configure (gyp, argv, callback) {
!gyp.opts.nodedir ? '<(target_arch)' : '$(Configuration)',
release.name + '.lib')

argv.push('-I', '"' + addon_gypi + '"')
argv.push('-I', '"' + common_gypi + '"')
argv.push('-I', addon_gypi)
argv.push('-I', common_gypi)
argv.push('-Dlibrary=shared_library')
argv.push('-Dvisibility=default')
argv.push('-Dnode_root_dir="' + nodeDir + '"')
if (process.platform === 'aix') {
argv.push('-Dnode_exp_file=' + node_exp_file)
argv.push('-Dnode_exp_file="' + node_exp_file + '"')
}
argv.push('-Dnode_gyp_dir="' + nodeGypDir + '"')
argv.push('-Dnode_lib_file="' + nodeLibFile + '"')
argv.push('-Dnw_lib_file="' + nwLibFile + '"')
argv.push('-Dmodule_root_dir=' + process.cwd())
argv.push('-Dmodule_root_dir="' + process.cwd() + '"')
argv.push('-Dnode_engine=' +
(gyp.opts.node_engine || process.jsEngine || 'v8'))
argv.push('--depth=.')
Expand All @@ -346,7 +346,7 @@ function configure (gyp, argv, callback) {
argv.unshift('binding.gyp')

// execute `gyp` from the current target nodedir
argv.unshift('"' + gyp_script + '"')
argv.unshift(gyp_script)

// make sure python uses files that came with this particular node package
var pypath = [path.join(__dirname, '..', 'gyp', 'pylib')]
Expand All @@ -355,7 +355,7 @@ function configure (gyp, argv, callback) {
}
process.env.PYTHONPATH = pypath.join(win ? ';' : ':')

var cp = gyp.spawn(python, argv, {windowsVerbatimArguments: true})
var cp = gyp.spawn(python, argv)
cp.on('exit', onCpExit)
})
}
Expand Down

0 comments on commit 82d7bb1

Please sign in to comment.