Build dependencies:
Numpy
Cython
C++20 compiler
CMake
Runtime Dependencies
Numpy
Simply execute the following commands:
If you wish to use a custom version of the TileDB library and it is installed in a non-standard location, pass the path to setup.py
with the --tiledb=
flag. If you want to pass extra compiler/linker flags during the C++ extension compilation step use --cxxflags=
or --lflags=
.
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 from source, then replace --tiledb=C:/path/to/TileDB
with --tiledb=C:/path/to/TileDB/dist
.