mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-06 20:58:22 +00:00
Python release CI (#2)
This commit is contained in:
9
bindings/python/build-sdist.sh
Normal file
9
bindings/python/build-sdist.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user