Skip to content

Build from source

To use the library, install it with pip. Build from source only to change the library, run the test suite, or use the benchmark scripts and the reproduction driver. The system requirements are the same as for pip. On Windows, follow the Windows tab of Install with pip first.

Get the code

git clone https://github.com/zenteiq-research/scirex
cd scirex
python3 -m venv scirex-venv
source scirex-venv/bin/activate
python -m pip install --upgrade pip

Install

Install in editable mode, so that changes to the code take effect without reinstalling. Choose one line.

Command Installs
pip install -e . The library, for the CPU
pip install -e ".[dev]" The library, the tests, the linters and pre-commit
pip install -e ".[all]" Everything: tests, benchmarks, tuning, meshing, docs and the release checks
pip install -e ".[all,cuda12]" Everything, with the NVIDIA GPU (CUDA 12) wheels
pip install -e ".[all,tpu]" Everything, with the TPU wheels

The extras hpo, mesh, wandb, open3d, benchmark, tune and docs are listed in pyproject.toml. all includes every one of them except the hardware wheels.

To develop, enable the git hooks once:

pre-commit install

Exact tested versions

requirements.txt has the exact versions the project is tested with. To install them:

pip install -r requirements.txt
pip install -e . --no-deps

Check the build

bash scripts/dev/check_platform.sh --backend cpu    # or gpu; imports everything, trains, saves, loads, infers

Next