Skip to content

Commit

Permalink
Add pip upgrade sooner in pipeline for dependency resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubawy-ama committed May 19, 2021
1 parent 1390617 commit 4efb835
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion odc_colab.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def odc_colab_init(
More information on ODC environment configuration can be found at:
https://opendatacube.readthedocs.io/en/latest/ops/config.html
""")
# Upgrade pip to do proper dependency resolution
_pip_install('pip', '--upgrade', verbose=verbose)
if install_datacube:
_check_pip_install('datacube', verbose=verbose)

Expand Down Expand Up @@ -294,7 +296,6 @@ def odc_colab_init(
_check_git_install('odc-gee',
'https://github.com/ceos-seo/odc-gee.git',
verbose=verbose)
_pip_install('pip', '--upgrade', verbose=verbose)
_check_pip_install('odc-gee', '-e', verbose=verbose)
_shell_cmd(["ln", "-sf", "/content/odc-gee/odc_gee",
"/usr/local/lib/python3.6/dist-packages/odc_gee"])
Expand Down

0 comments on commit 4efb835

Please sign in to comment.