Skip to content

Conversation

@AlexanderRichert-NOAA
Copy link
Contributor

@AlexanderRichert-NOAA AlexanderRichert-NOAA commented Jan 10, 2024

This PR allows for pre-fetching of css files (outside of the build system) without first attempting a download (which on some non-internet connected systems may cause the installation to hang indefinitely). Specifically, it rearranges the logic in hatch_build.py, checking to see whether the destination file exists before attempting a download (if the destination exists, then the _get_css_file function returns). I have tested installing on internet-connected systems (i.e., the normal way), as well as on non-internet connected systems with the css files pre-fetched through Spack (as resources).

Fixes #2093

Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@blink1073 blink1073 merged commit dedd81a into jupyter:main Jan 11, 2024
@blink1073
Copy link
Contributor

I'll make a patch release tomorrow.

@AlexanderRichert-NOAA
Copy link
Contributor Author

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow pre-fetching of css files?

2 participants