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

Add EMEWS.data submodule with PREM files #5

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

JostMigenda
Copy link
Member

This resolves #3, ensuring users automatically have the PREM files available after installing EMEWS.

Implementation detail

I’ve moved the code for the binary extension to an EMEWS._ext submodule; since leaving it as the top-level EMEWS module would “shadow” submodules and make it impossible to import e.g. EMEWS.data.
To ensure users don’t need to worry about this implementation detail, I have imported all functionality from the binary extension in the top level EMEWS/__init__.py, so usage remains unchanged.

Procedural detail

This PR builds on #4; I’ve submitted them as separate PRs for clarity. Accordingly, the diff for this PR shows a comparison with the JostMigenda/modernBuild branch currently, not with the main branch.

(When merging these two PRs, we should be a little careful to avoid confusion.)

Ensures that the binary extension doesn’t “shadow” EMEWS submodules, like `EMEWS.data`.
Uses top-level __init__.py to ensure functionality is still available by importing EMEWS
Raw cpp/h files are unnecessary in compiled wheels. Exclude them to reduce wheel size by ~30%.
@jpkneller jpkneller merged commit 18128e1 into JostMigenda/modernBuild Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants