Install#

Prebuilt Conda packages are available. For development, we recommend installing from source.

Install via Conda#

conda install Numbast

Validate the installation (optional)#

pytest ast_canopy/ numbast/

Note

If you see errors like “cannot find header ‘cuda.h’”, please refer to FAQ for more details.

Building Documentation#

Dependencies#

Use Conda to ensure consistent versions. From conda/environment.yaml, the doc-related dependencies are:

  • sphinx

  • sphinx-copybutton

You also need Python and a working environment to import numbast if you want versioned builds to reflect the installed package version (optional).

Build Steps#

  • Build all versions listed in docs/versions.json:

    cd docs
    ./build_docs.sh
    
  • Build only the latest version:

    cd docs
    ./build_docs.sh latest-only
    

Artifacts are generated under:

  • docs/build/html/latest

  • docs/build/html/<version> where <version> comes from SPHINX_NUMBAST_VER or detected package/version files.

Notes#

  • The build script sets SPHINX_NUMBAST_VER automatically from the installed numbast package version, numbast/VERSION, or top-level VERSION. If none is found, it uses latest.

  • Output also copies versions.json and creates a redirect index.html for convenience.