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

Pinning sqlite for binary builds #1817

Merged
merged 6 commits into from
Feb 28, 2025
Merged

Conversation

dcdenu4
Copy link
Member

@dcdenu4 dcdenu4 commented Feb 28, 2025

Description

Related to #1799. It looks like the dependency wasn't being handled in the binary build environment that is set up. This PR moves the restriction to the top conda dependency environment variable, to avoid missing it in the subsequent set ups. Even though it's not necessary for each environment being set up. Happy to chat about this and whether this is something that would be better maintained in scripts/convert-requirements-to-conda-yml.py or elsewhere.

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
  • Updated the user's guide (if needed)
  • Tested the Workbench UI (if relevant)

@dcdenu4 dcdenu4 requested a review from phargogh February 28, 2025 19:19
Copy link
Member

@phargogh phargogh left a comment

Choose a reason for hiding this comment

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

sqlite is interesting because it is a conda-forge package, but it is not a package on PyPI. Anything we put into requirements.txt MUST be a PyPI-installable dependency.

Instead, I think this addition should go in our requirements-to-conda-forge conversion script at https://github.com/natcap/invest/blob/main/scripts/convert-requirements-to-conda-yml.py

@emlys
Copy link
Member

emlys commented Feb 28, 2025

Sorry to jump in, but wasn't this done in #1799?

@dcdenu4
Copy link
Member Author

dcdenu4 commented Feb 28, 2025

Ha, thanks for jumping in @emlys . I completely missed this and it explains why the binary build wasn't catching it.

@dcdenu4 dcdenu4 requested a review from emlys February 28, 2025 19:55
@dcdenu4 dcdenu4 changed the title Pinning sqlite Pinning sqlite for binary builds Feb 28, 2025
@dcdenu4 dcdenu4 requested a review from phargogh February 28, 2025 20:01
@phargogh phargogh merged commit 21c1bf9 into natcap:main Feb 28, 2025
27 of 29 checks passed
@phargogh
Copy link
Member

Ah wait shoot, I merged before @emlys could review. I'm sorry about that! @dcdenu4 please feel free to revert the merge

@emlys
Copy link
Member

emlys commented Mar 1, 2025

Looks good to me!

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.

3 participants