-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Globally manage InstallRequirement.source_dir #7696
Globally manage InstallRequirement.source_dir #7696
Commits on Feb 6, 2020
-
Calculate autodelete_unpacked earlier in prepare_linked_requirement
We want to use this value to determine whether a globally-managed source_dir should delegate choosing deletion to the global tempdir manager, so it needs to be above our call to InstallRequirement.ensure_has_source_dir.
Configuration menu - View commit details
-
Copy full SHA for c7cb3cd - Browse repository at this point
Copy the full SHA c7cb3cdView commit details -
Wrap InstallRequirement.ensure_build_location in TempDirectory
Since we explicitly disable deletion this is a no-op, but we'll parameterize the deletion soon.
Configuration menu - View commit details
-
Copy full SHA for 470c399 - Browse repository at this point
Copy the full SHA 470c399View commit details -
Do not write delete marker file to track source_dir delete preference
Previously we were writing a delete marker file which is checked in InstallRequirement.remove_temporary_source which is only invoked if the user did not pass --no-clean (and a PreviousBuildDirError was not raised). Since our TempDirectory machinery now respects these conditions we can just wrap our source directory in that instead of using this ad-hoc mechanism for tracking our delete preference. This will let us clean up a lot of dead code that only existed for this use case.
Configuration menu - View commit details
-
Copy full SHA for 8197a4b - Browse repository at this point
Copy the full SHA 8197a4bView commit details -
Do not remove source directory in cleanup_temporary_source
Since nothing in our code writes the delete marker file, this block will never execute.
Configuration menu - View commit details
-
Copy full SHA for e6cc9e9 - Browse repository at this point
Copy the full SHA e6cc9e9View commit details -
Remove delete_marker_file writing in tests
Nothing checks for this file, so no need to write it.
Configuration menu - View commit details
-
Copy full SHA for 98cd193 - Browse repository at this point
Copy the full SHA 98cd193View commit details -
Configuration menu - View commit details
-
Copy full SHA for efe663d - Browse repository at this point
Copy the full SHA efe663dView commit details -
Remove InstallRequirement.remove_temporary_source
Since all directories are now globally-managed, we don't need to be concerned with resetting the member values. This will also let us remove several responsibilities from RequirementSet, which will make integrating the new resolver easier.
Configuration menu - View commit details
-
Copy full SHA for 5cca8f1 - Browse repository at this point
Copy the full SHA 5cca8f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a93045 - Browse repository at this point
Copy the full SHA 4a93045View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85ab574 - Browse repository at this point
Copy the full SHA 85ab574View commit details