Files
tokenizers/bindings/python/build-sdist.sh
2020-01-06 14:24:08 -05:00

10 lines
261 B
Bash
Executable File

#!/bin/bash
set -ex
# Create a symlink for tokenizers-lib
ln -sf ../../tokenizers tokenizers-lib
# Modify cargo.toml to include this symlink
sed -i 's/\.\.\/\.\.\/tokenizers/\.\/tokenizers-lib/' Cargo.toml
# Build the source distribution
python setup.py sdist