1, install pyoxidizer by cargo;
2, create project by "pyoxidizer init-rust-project";
3, change pyoxidizer.bzl to add pip_install action;
4, change src/main.rs to add my logic;
5, run pyoxidizer build/run to build/run project;
And I find that cargo build will run on temp dir, the log info is as blow
I make it work on my workspace, as Ctr-c when pyoxidizer running cargo build on temp project (make sure the temp dir while not be delete by pyoxidizer). Copy the build command and run it on my workspace.
But the operate is stupid, How can I make the pyoxidizer work with my workspace?
My pipeline is
1, install pyoxidizer by cargo; 2, create project by "pyoxidizer init-rust-project"; 3, change pyoxidizer.bzl to add pip_install action; 4, change src/main.rs to add my logic; 5, run pyoxidizer build/run to build/run project;
And I find that cargo build will run on temp dir, the log info is as blow
build command: "PYO3_CONFIG_FILE=/tmp/pyoxidizer4q6tDV/artifacts/pyo3-build-config-file.txt" "PYOXIDIZER_ARTIFACT_DIR=/tmp/pyoxidizer4q6tDV/artifacts" "PYOXIDIZER_REUSE_ARTIFACTS=1" "RUSTC=/home/user/.cache/pyoxidizer/rust/1.66.0-x86_64-unknown-linux-gnu/bin/rustc" /home/user/.cache/pyoxidizer/rust/1.66.0-x86_64-unknown-linux-gnu/bin/cargo build --target x86_64-unknown-linux-gnu --target-dir /tmp/pyoxidizer4q6tDV/build/target --bin pyodemo --locked --no-default-features --features "build-mode-prebuilt-artifacts global-allocator-jemalloc allocator-jemalloc"
And all files in the temp dir are writing as default demo, not copy from my workspace.
I make it work on my workspace, as Ctr-c when pyoxidizer running cargo build on temp project (make sure the temp dir while not be delete by pyoxidizer). Copy the build command and run it on my workspace. But the operate is stupid, How can I make the pyoxidizer work with my workspace?
My pyoxidizer version is as blow
$pyoxidizer --version PyOxidizer 0.24.0 commit: unknown source: https://github.com/indygreg/PyOxidizer.git pyembed crate location: version = "0.24.0"