Skip to content

Commit

Permalink
fix(pip_setup): correct extract file path
Browse files Browse the repository at this point in the history
Closes #6046
  • Loading branch information
rarkins committed Apr 24, 2020
1 parent fa42177 commit 89e2240
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/manager/pip_setup/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ interface PythonSetup {
extras_require: string[];
install_requires: string[];
}

let extractPy;

export async function extractSetupFile(
_content: string,
packageFile: string,
Expand All @@ -56,6 +59,7 @@ export async function extractSetupFile(
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 All @@ -65,7 +69,7 @@ export async function extractSetupFile(
'-v',
`${cwd}:${cwd}`,
'-v',
`${__dirname}:${__dirname}`,
`${extractPy}:${extractPy}`,
// cwd
'-w',
cwd,
Expand Down

0 comments on commit 89e2240

Please sign in to comment.