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

update pixi env and hooks #126

Closed
wants to merge 3 commits into from
Closed

Conversation

Jaapel
Copy link

@Jaapel Jaapel commented Aug 23, 2024

Issue addressed

Can now build on linux using pixi and no extra scripts.

Explanation

Added an extra pixi command and updated the dependencies to include libgdal, which installs the netcdf driver for gdal. I have not tested whether just libgdal-netcdf is enough.
Also added an extra hook that is required for gdal to understand the plugins at runtime.

Checklist

  • Updated tests or added new tests
  • Branch is up to date with master
  • Tests & pre-commit hooks pass
  • Updated documentation if needed

Additional Notes (optional)

Add any additional notes or information that may be helpful.

@dalmijn
Copy link
Collaborator

dalmijn commented Aug 26, 2024

@Jaapel, Nice idea. I do believe just libgdal-netcdf is enough. Does it btw really need the extra hook, I was under the impression that libraries are found at runtime as handled by python (or is that just conda and not pixi)?

@Jaapel
Copy link
Author

Jaapel commented Aug 26, 2024

@Jaapel, Nice idea. I do believe just libgdal-netcdf is enough. Does it btw really need the extra hook, I was under the impression that libraries are found at runtime as handled by python (or is that just conda and not pixi)?

In an isolated environment, it did not find the netcdf driver when using pyinstaller. I do not understand this completely, but this is probably because gdal does most of it's python bindings dynamically.

@Jaapel
Copy link
Author

Jaapel commented Sep 3, 2024

Closing in favor of #127

@Jaapel Jaapel closed this Sep 3, 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