Skip to content

Commit

Permalink
refactor: extractPy cache variable in extractSetupFile() (#6543)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Jun 25, 2020
1 parent be37109 commit 9478d6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/manager/pip_setup/extract.ts
Expand Up @@ -54,12 +54,11 @@ export async function extractSetupFile(
): Promise<PythonSetup> {
const cwd = config.localDir;
let cmd: string;
const file = await resolveFile('data/extract.py');
const args = [`"${file}"`, `"${packageFile}"`];
extractPy = extractPy || (await resolveFile('data/extract.py'));
const args = [`"${extractPy}"`, `"${packageFile}"`];
if (config.binarySource === BinarySource.Docker) {
logger.debug('Running python via docker');
await exec(`docker pull renovate/pip`);
extractPy = extractPy || (await resolveFile('data/extract.py'));
cmd = 'docker';
args.unshift(
'run',
Expand Down

0 comments on commit 9478d6b

Please sign in to comment.