google / sentencepiece

Unsupervised text tokenizer for Neural Network-based text generation.
Apache License 2.0
10.24k stars 1.17k forks source link

make it more friendly for mingw enviroments #1008

Closed Kreijstal closed 5 months ago

Kreijstal commented 5 months ago

to #1006 in msys2 enviroment build it as

cmake -DCMAKE_INSTALL_PREFIX=/mingw64/ -B build
cmake --build build --target install

then on python directory

SENTENCEPIECE_MINGW_SKIP=true python -m build --wheel --no-isolation --skip-dependency-check
python -m installer --prefix=/mingw64/  dist/*.whl

image

google-cla[bot] commented 5 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.