Skip to content

Commit 1144b9f

Browse files
englehardtvringar
authored andcommitted
Update remaining references from mamba to conda
1 parent 687b2fb commit 1144b9f

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,16 @@ the instrumentation section below for more details.
3333

3434
OpenWPM is tested on Ubuntu 18.04 via GitHub actions and is commonly used via the docker container
3535
that this repo builds, which is also based on Ubuntu. Although we don't officially support
36-
other platforms, mamba is a cross platform utility and the install script can be expected
36+
other platforms, conda is a cross platform utility and the install script can be expected
3737
to work on OSX and other linux distributions.
3838

3939
OpenWPM does not support windows: <https://github.com/openwpm/OpenWPM/issues/503>
4040

4141
### Pre-requisites
4242

43-
The main pre-requisite for OpenWPM is mamba, a fast cross-platform package management tool.
43+
The main pre-requisite for OpenWPM is conda, a fast cross-platform package management tool.
4444

45-
Mamba is open-source, and can be installed from <https://mamba.readthedocs.io/en/latest/installation.html>.
46-
47-
Mamba is a reimplmentation of conda and so sometimes a conda command has to be invoked instead of the mamba
48-
one.
45+
Conda is open-source and can be installed from <https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html>.
4946

5047
### Install
5148

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# conda environment if it exists.
1515

1616
# Arguments:
17-
# --skip-create: Doesn't change the openwpm mamba environment
17+
# --skip-create: Doesn't change the openwpm conda environment
1818

1919

2020
set -e
@@ -29,10 +29,10 @@ if [ "$1" != "--skip-create" ]; then
2929
case "$(uname -s)" in
3030
Darwin)
3131
echo '...using the osx-64 channel for MacOS dependencies'
32-
CONDA_SUBDIR=osx-64 PYTHONNOUSERSITE=True mamba env create -q -f environment.yaml
32+
CONDA_SUBDIR=osx-64 PYTHONNOUSERSITE=True conda env create -q -f environment.yaml
3333
;;
3434
*)
35-
PYTHONNOUSERSITE=True mamba env create -q -f environment.yaml
35+
PYTHONNOUSERSITE=True conda env create -q -f environment.yaml
3636
;;
3737
esac
3838

scripts/install-conda.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/bin/bash
22

3-
# This script installs mamba.
3+
# This script installs conda.
44
# It is only intended for use by travis and docker container
55

6-
# Users/Developers should install mamba themselves
7-
# via the instructions at https://mamba.readthedocs.io/en/latest/installation.html
8-
# Mamba has been chosen as a replacement for conda as it performs much faster
9-
# and consumes less resources
6+
# Users/Developers should install conda themselves
7+
# via the instructions at https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html
108

119
# Ref: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/use-conda-with-travis-ci.html
1210
wget -q "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" -O conda.sh;

scripts/repin.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# This script re-creates environment.yaml
44
# This script will remove an existing openwpm
5-
# mamba environment if it exists.
5+
# conda environment if it exists.
66

77
set -e
88

9-
# Make mamba available to shell script
9+
# Make conda available to shell script
1010
eval "$(conda shell.bash hook)"
1111

1212
# Create openwpm env with unpinned yaml file
@@ -15,10 +15,10 @@ eval "$(conda shell.bash hook)"
1515
case "$(uname -s)" in
1616
Darwin)
1717
echo 'Using the osx-64 channel for MacOS dependencies...'
18-
CONDA_SUBDIR=osx-64 PYTHONNOUSERSITE=True mamba env create -q -f environment-unpinned.yaml
18+
CONDA_SUBDIR=osx-64 PYTHONNOUSERSITE=True conda env create -q -f environment-unpinned.yaml
1919
;;
2020
*)
21-
PYTHONNOUSERSITE=True mamba env create -q -f environment-unpinned.yaml
21+
PYTHONNOUSERSITE=True conda env create -q -f environment-unpinned.yaml
2222
;;
2323
esac
2424

@@ -29,16 +29,16 @@ conda activate openwpm
2929
case "$(uname -s)" in
3030
Darwin)
3131
echo 'Using the osx-64 channel for MacOS dependencies...'
32-
CONDA_SUBDIR=osx-64 PYTHONNOUSERSITE=True mamba env update -f environment-unpinned-dev.yaml
32+
CONDA_SUBDIR=osx-64 PYTHONNOUSERSITE=True conda env update -f environment-unpinned-dev.yaml
3333
;;
3434
*)
35-
PYTHONNOUSERSITE=True mamba env update -f environment-unpinned-dev.yaml
35+
PYTHONNOUSERSITE=True conda env update -f environment-unpinned-dev.yaml
3636
;;
3737
esac
3838

3939

4040
# Export the environment including manually specify channels
41-
mamba env export --no-builds --override-channels -c conda-forge -c main -f ../environment.yaml
41+
conda env export --no-builds --override-channels -c conda-forge -c main -f ../environment.yaml
4242

4343
# Prune environment file to only things we want to pin
4444
python prune-environment.py

0 commit comments

Comments
 (0)