Skip to content

Commit

Permalink
Install pywin32 into depot_tools's python.
Browse files Browse the repository at this point in the history
depot_tools is currently missing pywin32 on Windows which is needed
by build/toolchain/win/tool_wrapper.py.
  • Loading branch information
mkarolin committed Dec 11, 2019
1 parent 98fc8d8 commit a8e8f2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,21 @@ const crypto = require('crypto')
const autoGeneratedBraveToChromiumMapping = Object.assign({}, require('./l10nUtil').autoGeneratedBraveToChromiumMapping)
const os = require('os')

const fixPywin32 = (options = {}) => {
if (process.platform !== 'win32') {
return
}
console.log("Manually installing pywin32 python module")
util.run('python', ['-m', 'pip', 'install', 'pywin32'], options)
}

const runGClient = (args, options = {}) => {
if (config.gClientVerbose) args.push('--verbose')
options.cwd = options.cwd || config.rootDir
options = mergeWithDefault(options)
options.env.GCLIENT_FILE = config.gClientFile
util.run('gclient', args, options)
fixPywin32(options)
}

const mergeWithDefault = (options) => {
Expand Down

0 comments on commit a8e8f2e

Please sign in to comment.