Skip to content

Commit

Permalink
I. natcap#1797 moving restriction to conda create script.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcdenu4 committed Feb 28, 2025
1 parent 0870f68 commit 953e024
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ Babel
Flask
flask_cors
requests
sqlite!=3.49.* # https://github.com/conda-forge/sqlite-feedstock/issues/130
6 changes: 5 additions & 1 deletion scripts/convert-requirements-to-conda-yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
{pip_dependencies}
"""

# For restricting conda-forge only packages
# https://github.com/conda-forge/sqlite-feedstock/issues/130
CONDA_DEPS = ['sqlite<3.49']


def build_environment_from_requirements(cli_args):
"""Build a conda environment.yml from requirements.txt files.
Expand Down Expand Up @@ -47,7 +51,7 @@ def build_environment_from_requirements(cli_args):
requirements_files = args.req

pip_requirements = set()
conda_requirements = set()
conda_requirements = set(CONDA_DEPS)
for requirement_file in requirements_files:
with open(requirement_file) as file:
for line in file:
Expand Down

0 comments on commit 953e024

Please sign in to comment.