Skip to content

Commit

Permalink
Upgrade pip before installation of packages (#775)
Browse files Browse the repository at this point in the history
* Upgrade pip before installation of packages

* Isolate no-deps

* Keep isolating no-deps

* Change the number of topics to check from 10 to 11. FIXME: externalise the list of topics inside a configuration file.
  • Loading branch information
JulienPeloton authored Jan 5, 2024
1 parent aaa5ab6 commit fc3ab61
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN mkdir -p $FINK_HOME/deps
# when fink-broker code changes
ENV PIP_NO_CACHE_DIR 1
ADD deps/requirements.txt $FINK_HOME/deps
RUN pip install -r $FINK_HOME/deps/requirements.txt
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && pip install -r $FINK_HOME/deps/requirements.txt

RUN git clone -c advice.detachedHead=false --depth 1 -b "latest" --single-branch https://github.com/astrolabsoftware/fink-alert-schemas.git

Expand Down
13 changes: 13 additions & 0 deletions deps/requirements-science-no-deps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# fink-fat
fink_fat @ https://github.com/FusRoman/fink-fat/archive/v0.16.0.zip
sbpy

# Fink MM
fink_MM @ https://github.com/FusRoman/Fink_MM/archive/v0.16.10.zip

# Installation of torch without GPU support (lighter)
-f https://download.pytorch.org/whl/torch_stable.html
torch==1.12.0+cpu

# Astronet
-e git+https://github.com/tallamjr/astronet.git#egg=astronet
7 changes: 0 additions & 7 deletions deps/requirements-science.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ iminuit==2.21.0
# kilonova @ sklearn==1.0.2
-e git+https://github.com/b-biswas/kndetect@kndetect#egg=kndetect

# Installation of torch without GPU support (lighter)
-f https://download.pytorch.org/whl/torch_stable.html
torch==1.12.0+cpu

# CATS dependencies
tensorflow==2.9.2
tensorflow_addons==0.18.0
Expand All @@ -35,11 +31,9 @@ onnx==1.12.0
onnxruntime

# fink-fat
fink_fat @ https://github.com/FusRoman/fink-fat/archive/v0.16.0.zip --install-option="--no-deps"
sbpy

# Fink MM
fink_MM @ https://github.com/FusRoman/Fink_MM/archive/v0.16.10.zip --install-option="--no-deps"
gcn-kafka==0.3.0
voevent-parse==1.0.3
tabulate==0.9.0
Expand All @@ -50,7 +44,6 @@ importlib-resources==5.9.0
pandera==0.14.5

# Installation of astronet
-e git+https://github.com/tallamjr/astronet.git#egg=astronet --install-option="--no-deps"
imbalanced-learn==0.7.0
optuna==2.3.0
george

0 comments on commit fc3ab61

Please sign in to comment.