-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconda_env.yml
47 lines (39 loc) · 1.61 KB
/
conda_env.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: geowatch
channels:
- conda-forge
- nodefaults
dependencies:
- python == 3.9
- pip >= 21.0.1
- pip:
- -r requirements/runtime.txt
- -r requirements/development.txt
- -r requirements/tests.txt
# Brings in opencv-python, which conflicts with opencv-python-headless
#- imgaug >= 0.4.0
# Can conflict with opencv-python
- --prefer-binary
- opencv_python_headless >= 4.5.2.52
# These package specification strings don't play nicely in
# requirements/runtime.txt when needed by setup.py
#- git+https://github.com/dmjoy/sentinel2_angle_bands.git@54922e8#egg=s2angs
# find-links applies to everything after it, so make sure this is the last dep
# References: https://stackoverflow.com/questions/60410173/find-links-conda-env
- --find-links https://girder.github.io/large_image_wheels
- GDAL >= 3.4.1
# Abuse conda environment spec and YAML notation to make a heredoc for notes
# and relevant commands
#variables:
.__doc__: &__doc__
- |
pip uninstall osgeo GDAL
pip install GDAL==3.3.1 --find-links https://girder.github.io/large_image_wheels
rm -rf ".cache/conda/envs/loose-watch-env"
conda env create -f conda_env.yml --prefix ".cache/conda/envs/loose-watch-env" -v -v
# Note: in the case where an implicit requirement pulls down
# opencv-python, run the following command to replace it with
# opencv-python-headless
pip uninstall opencv-python opencv-python-headless; pip install opencv-python-headless
# Note: work in dev/make_reqs_from_conda.py has work on doing interesting
# things with this file.