Skip to content

Commit

Permalink
install pomegranate after other deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rwedge committed Jan 3, 2025
1 parent 5735b6b commit dd493d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ def install_minimum(c):
dependencies = project_data.get('dependencies', [])
optional_dependencies = project_data.get('optional-dependencies', {})
pomegranate_dependencies = optional_dependencies.get('pomegranate', [])
dependencies.extend(pomegranate_dependencies)

python_version = '.'.join(map(str, sys.version_info[:2]))
minimum_versions = _get_minimum_versions(dependencies, python_version)
minimum_pomegranate_versions = _get_minimum_versions(pomegranate_dependencies, python_version)

if minimum_versions:
install_deps = ' '.join(minimum_versions)
c.run(f'python -m pip install --force-reinstall --no-cache-dir {install_deps}')
pomegranate_deps = ' '.join(minimum_pomegranate_versions)
c.run(f'python -m pip install {install_deps}')
c.run(f'python -m pip install --force-reinstall --no-cache-dir {pomegranate_deps}')


@task
Expand Down

0 comments on commit dd493d4

Please sign in to comment.