-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support mirroring ptex, scie-jump and provided dists. #120
Conversation
95fd0a2
to
65c3a57
Compare
Introduce a `science download` family of commands for mirroring a-scie binaries and provider distributions to a local directory tree that can be served up or used directly via `file://` URLs in new `base_url` configuration options for the corresponding lift manifest entries. Fixes a-scie#114
@ubmarco if you have time to take a look / provide feedback, I'd be grateful. Even if the PR is submitted I'll be happy to address further refinement of your use case. |
Reviewers: pretty huge - I don't expect a review - this is FYI that science will shortly support fully offline / corporate fire-walled use in a reasonably convenient way. |
fetches_present = any( | ||
isinstance(file.source, Fetch) and file.source.lazy for file in requested_files | ||
) | ||
if application.ptex or fetches_present: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out application.ptex is always non-null and so this change caused a ptex
binary to be included in every scie, needed or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #124.
Only include it when needed. The over-eager inclusion originated here in the 0.11.0 release: #120 (comment)
Introduce a
science download
family of commands for mirroring a-sciebinaries and provider distributions to a local directory tree that can
be served up or used directly via
file://
URLs in newbase_url
configuration options for the corresponding lift manifest entries.
Fixes #113
Fixes #114