Skip to content
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

Reduce dependence on disk files during Wheel installation #8526

Merged
merged 3 commits into from
Jul 3, 2020

Conversation

chrahunt
Copy link
Member

@chrahunt chrahunt commented Jul 3, 2020

This is one of several places where we're depending on files on disk during Wheel installation. Removing it brings us closer to installing directly from Wheel files.

Progresses #6030.

@chrahunt chrahunt added the skip news Does not need a NEWS file entry (eg: trivial changes) label Jul 3, 2020
@chrahunt chrahunt force-pushed the reduce-dependence-on-files branch from b0a3cf7 to 60ffe20 Compare July 3, 2020 01:31
@chrahunt chrahunt marked this pull request as ready for review July 3, 2020 02:08
chrahunt added 3 commits July 3, 2020 08:59
`source` is provided as an argument to this function. Shadowing it can
lead to type errors if the intermediate types change.
This reduces our dependence on the files being extracted to the
filesystem.

Compare the name extraction to the similar code in
`utils.wheel.wheel_dist_info_dir`.

We don't need to give `.data` directories the same strict
treatment (yet) because it isn't inconvenient if there happen
to be multiple of them in a single Wheel file.
Reducing the scope of variables reduces possible dependencies between
parts of this function, and will make it easier to extract this section
into its own function.
@pradyunsg pradyunsg added the type: refactor Refactoring code label Jul 3, 2020
@chrahunt chrahunt merged commit ea7ee7d into pypa:master Jul 3, 2020
@chrahunt chrahunt deleted the reduce-dependence-on-files branch July 3, 2020 15:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants