Install From Source

Use this path when you cannot use a released wheel for your platform or when you intentionally want to build eqty_sdk from source.

eqty_sdk includes a Rust extension built with maturin, so a source install requires a working Rust toolchain in addition to Python.

Requirements

  • Python 3.10 or newer
  • pip
  • Rust and cargo
  • a native compiler toolchain for your platform

On Linux, that usually means a C compiler and common build tooling. On macOS, make sure the Xcode command line tools are installed.

Install Rust

If cargo is not already available, install Rust first.

curl https://sh.rustup.rs -sSf | sh

After installation, ensure cargo is on your PATH:

cargo --version

Install From The Source Distribution

Once Rust is available, install the package with pip and force a source build:

python -m pip install --index-url https://pypi.eqtylab.io/simple/ --no-binary eqty_sdk eqty_sdk

pip will download the source distribution from the Eqty package index, create a build environment, and compile the Rust extension as part of the install.

If you are installing from a specific source archive you already downloaded, point pip at that file directly:

python -m pip install ./eqty_sdk-<version>.tar.gz

Verify The Install

python -c "import eqty_sdk; print(eqty_sdk.__file__)"

If the import succeeds, the SDK and compiled extension were installed correctly.