Skip to content

Commit

Permalink
Make xdem compatible for Binder (#312)
Browse files Browse the repository at this point in the history
* Add a binder folder

* Add geoutils/xdem in conda dep directly. Add jupytext.

* Test fixing issue with opencv import

* Add postbuild command to install xdem with pip and copy main environment file

* Try with environment update only

* Test without the postbuild

* Another test

* Test symlink to main environment.yml

* Re-add pip install command

* Remove redundant jupyter requirement, add pip to avoid warning

* Add pip to dev-env to match change in env

Co-authored-by: rhugonne <romain.hugonnet@gmail.com>
  • Loading branch information
adehecq and rhugonnet committed Oct 17, 2022
1 parent 81abcc8 commit e878d78
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions binder/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libgl1-mesa-glx
1 change: 1 addition & 0 deletions binder/environment.yml
4 changes: 4 additions & 0 deletions binder/extra-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
channels:
- conda-forge
dependencies:
- jupytext
6 changes: 6 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e # To avoid silent errors

# ${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "environment.yml"
pip install -e .
${MAMBA_EXE} env update -p ${NB_PYTHON_PREFIX} --file "binder/extra-environment.yml"
1 change: 1 addition & 0 deletions dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- proj-data
- scikit-gstat>=0.6.8
- pytransform3d
- pip

# Development-specific
- autovizwidget
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- proj-data
- scikit-gstat>=0.6.8
- pytransform3d
- pip

- pip:
- geoutils==0.0.9

0 comments on commit e878d78

Please sign in to comment.