Skip to content

Fix caching of exposed packages#90

Merged
MarkKoz merged 6 commits into
masterfrom
bug/deps/89/isolate-sites
Jan 13, 2021
Merged

Fix caching of exposed packages#90
MarkKoz merged 6 commits into
masterfrom
bug/deps/89/isolate-sites

Conversation

@MarkKoz
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz commented Jan 12, 2021

Fix #89

The problem with --ignore-installed is that it also ignores packages in the target site, therefore re-installing all packages and making caching futile.

Install snekbox's dependencies to the default user site. During installation of the exposed packages, switch the user site to a custom one to ensure pip will not skip packages due to seeing them as already installed as one of snekbox's dependencies.

If pip made the --root option ignore packages outside the root, then using --root would be the best solution. There is a 5+ year old issue open about that.

There is also some refactoring of the Dockerfile.

The problem with --ignore-installed is that it also ignores packages in
the target site, therefore re-installing all packages and making caching
futile.

Install snekbox's dependencies to the default user site. During
installation of the exposed packages, switch the user site to a custom
one to ensure pip will not skip packages due to seeing them as already
installed as one of snekbox's dependencies.

If pip made the --root option ignore packages outside the root, then
using --root would be the best solution. There is a 5+ year old issue
open about that.
@MarkKoz MarkKoz added type: bug Something isn't working area: dependencies Related to package dependencies and management labels Jan 12, 2021
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 93.421% when pulling 247eab3 on bug/deps/89/isolate-sites into 7b844fe on master.

Copy link
Copy Markdown
Contributor

@Akarys42 Akarys42 left a comment

Choose a reason for hiding this comment

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

LGTM

@MarkKoz MarkKoz merged commit 5462af6 into master Jan 13, 2021
@MarkKoz MarkKoz deleted the bug/deps/89/isolate-sites branch January 13, 2021 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: dependencies Related to package dependencies and management type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deployed pandas install is broken due to missing six dependency

3 participants