pyvrs is a Python interface for C++ library VRS using pybind11.
pypi package is built with this Github Action manually.
pip install vrs
# Build locally
git clone --recursive https://github.com/facebookresearch/pyvrs.git
cd pyvrs
# if you are updating an existing checkout
git submodule sync --recursive
git submodule update --init --recursive
# Install VRS dependencies: https://github.com/facebookresearch/vrs#instructions-macos-and-ubuntu-and-container
python -m pip install -e .
- Open a Developer Command Prompt for VS 2019/2022 at the root of this repository.
- (optional) Set the
VCPKG_ROOT
environmental variable usingset VCPKG_ROOT={PATH_TO_VCPKG_ROOT}
. This is necessary whenvcpkg
is not at../vcpkg
. - (optional) Set the
VCPKG_TRIPLET
environmental variable usingset VCPKG_TRIPLET=x64-windows-vc142
. This is necessary when the default triplet does not compile. - (optional) Add a
vcpkg
baseline usingVCPKG_ROOT/vcpkg.exe x-update-baseline --add-initial-baseline
. pip install .
(using editable mode-e
results in dislocated package & dlls, meaning we need to copy the*.dll
from the build directory to the root path where the*.pyd
is located)
We welcome contributions! See CONTRIBUTING for details on how to get started, and our code of conduct.
VRS is released under the Apache 2.0 license.