Skip to content
Merged
6 changes: 3 additions & 3 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ jobs:
cat "requirements-dev.txt"
python -m pip install --no-build-isolation -r requirements-dev.txt
python -m pip list
python setup.py develop # test no compile installation
python -m pip install -e . # test no compile installation
shell: bash
- name: Run compiled (${{ runner.os }})
run: |
python setup.py develop --uninstall
BUILD_MONAI=1 python setup.py develop # compile the cpp extensions
python -m pip uninstall -y monai
BUILD_MONAI=1 python -m pip install -e . # compile the cpp extensions
shell: bash
- name: Run quick tests (CPU ${{ runner.os }})
run: |
Expand Down
8 changes: 4 additions & 4 deletions docs/source/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,23 @@ You can install it by running:

```bash
cd MONAI/
python setup.py develop
pip install -e .
```

or, to build with MONAI C++/CUDA extensions and install:

```bash
cd MONAI/
BUILD_MONAI=1 python setup.py develop
BUILD_MONAI=1 pip install -e .
# for MacOS
BUILD_MONAI=1 CC=clang CXX=clang++ python setup.py develop
BUILD_MONAI=1 CC=clang CXX=clang++ pip install -e .
```

To uninstall the package please run:

```bash
cd MONAI/
python setup.py develop --uninstall
pip uninstall -y monai

# to further clean up the MONAI/ folder (Bash script)
./runtests.sh --clean
Expand Down
4 changes: 2 additions & 2 deletions runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ function compile_cpp {
${cmdPrefix}"${PY_EXE}" -m pip uninstall -y monai
if [[ "$OSTYPE" == "darwin"* ]];
then # clang for mac os
CC=clang CXX=clang++ ${cmdPrefix}"${PY_EXE}" setup.py develop --user
BUILD_MONAI=1 CC=clang CXX=clang++ ${cmdPrefix}"${PY_EXE}" -m pip install -e .
else
${cmdPrefix}"${PY_EXE}" setup.py develop --user
BUILD_MONAI=1 ${cmdPrefix}"${PY_EXE}" -m pip install -e .
fi
}

Expand Down
Loading