Skip to content

Do not use --cache-dir for pip if CLEAN_AFTER_BUILD is enabled #6239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 3, 2019

Conversation

humitos
Copy link
Member

@humitos humitos commented Oct 2, 2019

Avoid caching pip packages if we are using CLEAN_AFTER_BUILD.

This PR decide when to use --cache-dir or --no-cache-dir based on this setting.

@stsewd what do you think about this? If you think it's OK, I will fix the tests tomorrow.

Related #6236 (comment)

@humitos humitos requested a review from stsewd October 2, 2019 17:47
Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm ok with this solution 👍

Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks reasonable 👍

Copy link
Member

@stsewd stsewd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are green now

@agjohnson agjohnson merged commit 58f833d into master Oct 3, 2019
@agjohnson agjohnson deleted the humitos/no-cache-if-clean-build branch October 3, 2019 21:34
agjohnson pushed a commit that referenced this pull request Oct 3, 2019
* Do not use --cache-dir for pip if CLEAN_AFTER_BUILD is enabled

* Invert conditional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants