Local development environment¶
Clone the repo¶
Start by cloning the repo:
git clone https://github.com/mamba-org/mamba.git
Then move to the newly created directory:
Install dev requirements¶
mamba env update --name <env_name> --file environment-dev.yml
micromamba install --name <env_name> --file environment-dev.yml
If you don’t have one, refer to the installation page.
mamba relies on
python setup.py installation while others targets rely on
cmake commands listed below use
bash multi-line syntax.
On Windows, replace
\ trailing character with
If you build
mamba in a different environment than base, you must also install
in that environment:
mamba install conda -c conda-forge
For a local (dev) build, run in the environment:
pip install -e .
This will build and install
mamba in the current environment.
You should now be able to run the Python-based test suite:
libmambais enabled by default (
mkdir -p build cd build cmake .. cmake --build . -j
First, compile the
gtest-based C++ test suite:
mkdir -p build cd build cmake .. \ -DENABLE_TESTS=ON cmake --build . -j
You should now be able to run:
Alternatively you can use:
The static version of
libmamba is necessary to build the C++ tests, don’t disable it!