File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,25 +20,25 @@ environment:
2020 RUST_TARGET : " x86_64-pc-windows-msvc"
2121
2222install :
23- - " .build.cmd %PYTHON%\\ python -m pip install -U pip setuptools wheel"
23+ - " %PYTHON%\\ python -m pip install -U pip setuptools wheel"
2424 - ps : Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:RUST_TARGET}.exe"
2525 - rust-nightly-%RUST_TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust"
2626 - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin
2727 - SET PATH=%PATH%;C:\MinGW\bin
28- - rustc -V
29- - cargo -V
3028
3129build_script :
32- - cd c:\projects\python-rust-fst
30+ - " .build.cmd %PYTHON%\\ python -m pip install cffi pytest"
31+ # We build the shared library outside of setuptools since we run into problems
32+ # with the %PATH% set by .build.cmd...
33+ - " cargo build --manifest-path fstwrapper/Cargo.toml --release"
3334 - " .build.cmd %PYTHON%\\ python -m pip -v wheel . -w .\\ wheelhouse"
3435 - dir wheelhouse
3536
3637test_script :
3738 - SET PROJPATH=C:\Projects\python-rust-fst
3839 - cd c:\projects
39- - " %PROJPATH%\\ .build.cmd %PYTHON%\\ python -m pip install cffi pytest"
40- - " %PROJPATH%\\ .build.cmd %PYTHON%\\ python -m pip -v install rust_fst --no-index -f %PROJPATH%\\ wheelhouse"
41- - " %PROJPATH%\\ .build.cmd %PYTHON%\\ python -m pytest --verbose %PROJPATH%\\ tests"
40+ - " %PYTHON%\\ python -m pip -v install rust_fst --no-index -f %PROJPATH%\\ wheelhouse"
41+ - " %PYTHON%\\ python -m pytest --verbose %PROJPATH%\\ tests"
4242
4343artifacts :
4444 - path : wheelhouse\rust_fst*.whl
You can’t perform that action at this time.
0 commit comments