-
Notifications
You must be signed in to change notification settings - Fork 565
Remove target_pixi again & address env var changes that caused rebuilds
#11826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@rerun-bot full-check |
|
Web viewer built successfully.
View image diff on kitdiff. Note: This comment is updated whenever you push a commit. |
|
Latest documentation preview deployed successfully.
Note: This comment is updated whenever you push a commit. |
|
Started a full build: https://github.com/rerun-io/rerun/actions/runs/19175265974 |
target_pixi againtarget_pixi again
target_pixi againtarget_pixi again & address env var changes that caused rebuilds
| # https://pyo3.rs/main/building-and-distribution.html#configuring-the-python-version | ||
| PYO3_PYTHON = "python" | ||
|
|
||
| # TODO(rust-lang/stacker#127): Work around until wasm build on mac is resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly an FYI that stacker took my PR. Doing a cargo tree --invert stacker shows that everything depends on it indirectly through recursive which doesn't pin the patch version. That means on the next build of datafusion > 50.3 we should no longer need the AR workaround.
emilk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done!
I got annoyed by having two (four with _wasm variants) target folders around because of unintentionally switching between the pixi environment & "raw" invocations.
This PR removes
target_pixiagain and addresses the reason we introduced this in the first place: there are certain environment variables in the pixi environment that get picked up by rust build scripts.Using
CARGO_LOG=cargo::core::compiler::fingerprint=infoI identified two:AR: we set this on MacOS to solve some issues with our wasm build, see Fix building Web Viewer on macOS #10828CONDA_PREFIX: py03 uses this to govern which python install to useThe fix in both cases is to move those env vars to
.cargo/config.toml. ForARthat's trivial, forCONDA_PREFIXnot so much! Every pixi environment has its own conda prefix (and yes that would also cause rebuilds between pixi environments!). So instead I'm settingPYO3_PYTHONwhich directly governs which python install pyo3 uses for linking. Here be dragons (a little bit ;-)): This means we no longer fix the python version used and instead rely on whateverpythonpoints to.things I tried to verify this:
pixi run cargo check&cargo checknot causing to rebuild each otherpixi run py-buildthen execute some script that needs a Rerun installpixi run rerun-webout of pragmatism I left the pixi target folder in git & prettier ignore lists 🤷