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

Extension dependencies as weak dependencies #4175

Open
Zetison opened this issue Feb 27, 2025 · 0 comments
Open

Extension dependencies as weak dependencies #4175

Zetison opened this issue Feb 27, 2025 · 0 comments

Comments

@Zetison
Copy link

Zetison commented Feb 27, 2025

If extensions have dependencies not present in the main project they must either be listed in [deps] or can be included in the extension i.e. (with EMGExt being an extension with EnergyModelsGeography)

[extensions]
EMGExt = ["GeoJSON", "GeoMakie", "HTTP", "EnergyModelsGeography"]

The former would require redundant dependencies (if EMGExt is not used) while the latter would in order to use the extension require not only EnergyModelsGeography to be loaded, but GeoJSON, GeoMakie, and HTTP as well. It would be convenient if these three packages would be loaded only when EnergyModelsGeography is loaded. Could this be implemented?

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

No branches or pull requests

1 participant