forked from rerun-io/rerun
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
41 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,35 @@ | ||
use std::process::Command; | ||
use std::path::Path; | ||
fn main() { | ||
// Required for `cargo build` to work on mac: https://pyo3.rs/v0.14.2/building_and_distribution.html#macos | ||
pyo3_build_config::add_extension_module_link_args(); | ||
|
||
re_build_build_info::export_env_vars(); | ||
let script_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("select_package.py"); | ||
if !script_path.exists() { | ||
panic!("Pre-build script not found: {:?}", script_path); | ||
} | ||
|
||
println!("Running pre-build script..."); | ||
|
||
// Try `python` first | ||
let python_result = Command::new("python3") | ||
.arg(&script_path) | ||
.status(); | ||
|
||
// If `python` fails, fall back to `python3` | ||
let status = match python_result { | ||
Ok(status) if status.success() => status, | ||
_ => Command::new("python") | ||
.arg(&script_path) | ||
.status() | ||
.expect("Failed to execute pre-build script with both `python` and `python3`"), | ||
}; | ||
|
||
if !status.success() { | ||
panic!("Pre-build script failed with status: {:?}", status); | ||
} | ||
|
||
println!("Pre-build script completed successfully."); | ||
println!("cargo:rerun-if-changed=select_package.py"); | ||
} |
Empty file.
3 changes: 0 additions & 3 deletions
3
rerun_py/depthai_viewer/_backend/obscured_utilities/utilities/__init__.py
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
rerun_py/depthai_viewer/_backend/obscured_utilities/utilities/calibration_handler.py
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
rerun_py/depthai_viewer/_backend/obscured_utilities/utilities/display_handler.py
Large diffs are not rendered by default.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
...y/depthai_viewer/_backend/obscured_utilities/utilities/pyarmor_runtime_007125/__init__.py
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-853 KB
...kend/obscured_utilities/utilities/pyarmor_runtime_007125/darwin_x86_64/pyarmor_runtime.so
Binary file not shown.
Binary file removed
BIN
-774 KB
...ckend/obscured_utilities/utilities/pyarmor_runtime_007125/linux_x86_64/pyarmor_runtime.so
Binary file not shown.
Binary file removed
BIN
-618 KB
...nd/obscured_utilities/utilities/pyarmor_runtime_007125/windows_x86_64/pyarmor_runtime.pyd
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters