Pyslang, the Python bindings for the slang project, are built, tested, and packaged with code in this repository.
The bulk of functional code is in the slang
repository. Please refer to its CONTRIBUTING.md guide for more information on contributing to the core project.
Python bindings are built using pybind11.
All documentation is contained in the docs
directory of the slang
repository.
- Clone the
pyslang
repository (https://github.com/MikePopoloski/pyslang) - Clone the
slang
submodule:
git submodule update --init --recursive
- Optionally, create a virtual environment and activate it.
python3 -m venv venv
source venv/bin/activate
- Install
pyslang
as a Python package (including building the C++slang
library with bindings, from the submodule):
pip install .