Skip to content

Commit

Permalink
let pip install retry
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Aug 24, 2020
1 parent c392304 commit 91fc2af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion packages/jsii-pacmak/lib/targets/python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,15 @@ export default class Python extends Target {
// Install the necessary things
await shell(
python,
['-m', 'pip', 'install', '--no-input', ...pythonBuildTools, 'twine~=3.2'],
[
'-m',
'pip',
'install',
'--no-input',
'--retries=5',
...pythonBuildTools,
'twine~=3.2',
],
{
cwd: sourceDir,
env,
Expand Down
2 changes: 1 addition & 1 deletion packages/jsii-pacmak/test/build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else
# Hello Windows!
. ${venv}/Scripts/activate
fi
python3 -m pip install --upgrade pip~=20.2 twine~=3.2
python3 -m pip install --upgrade --retries=5 pip~=20.2 twine~=3.2

# Provision a specific NuGet package cache
NUGET_CACHE=${outdir}/.nuget/packages
Expand Down

0 comments on commit 91fc2af

Please sign in to comment.