Build dependencies:
NumPy
Cython
pybind11
scikit-build-core
C++20 compiler
CMake
Runtime Dependencies
NumPy
Simply execute the following commands:
If you wish to modify the install process, you can use these environment variables:
TILEDB_PATH
: Path to TileDB core library. If this variable is set and the library is found in the specified folder it is not copied inside of the wheel.
TILEDB_VERSION
: Version of the TileDB core library that you wish to download. This version must be present in the Github releases.
TILEDB_HASH
: SHA256 sum of the desired TileDB core library release. Only used when TILEDB_VERSION
is set.
To build against libtiledb
installed with conda, run:
To test your local installation, install optional dependencies, and then use pytest
:
If TileDB is installed in a non-standard location, you also need to make the dynamic linker aware of libtiledb
's location. Otherwise when importing the tiledb
module you will get an error that the built extension module cannot find libtiledb
's symbols:
For macOS the linker environment variable is DYLD_LIBRARY_PATH
.
If you are building the extension on Windows, first install a Python distribution such as Miniconda. You can then either build TileDB from source, or download the pre-built binaries.
Once you've installed Miniconda and TileDB, execute:
Note that if you built TileDB locally from source, then replace set TILEDB_PATH=C:/path/to/TileDB
with TILEDB_PATH=C:/path/to/TileDB/dist
.