Conversation
|
This looks great. I have two concerns though:
It feels that is a great tool for end-user/"binary" projects, but doesn't really help with the complexity of "library" projects which are by definition more exposed to the world's complexity. |
My proposal though is that all of the other |
|
I've converted this into a draft until it is a bit more than just a proof-of-concept |
ChangesFor now we will stick to using To that end I have deprecated The immediate benefit of this PR is that |
|
I've also added a bunch of TODO:s to #3717 |
| platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"] | ||
| readme = "README.md" | ||
| repository = "https://github.com/rerun-io/rerun" | ||
| version = "0.1.0" # TODO(emilk): sync version with `Cargo.toml` with help from `crates.py` |
There was a problem hiding this comment.
todo is fine, but we might as well just start with 0.10.0-alpha
There was a problem hiding this comment.
I think this is more clearly wrong. 0.10.0-alpha will just bitrot quickly. We're not planning on publishing rerun on pixi soon.
| "py-build", | ||
| ] } | ||
|
|
||
| cpp-prepare = "cmake -G Ninja -B build -S . -DCMAKE_BUILD_TYPE=Debug" |
There was a problem hiding this comment.
note to self: Check if this still works fine on windows (since pixi should download ninja for windows it might as well work fine, opening the door to more unified build experience than what I had in mind! \o/)
There was a problem hiding this comment.
There's this in CMakeLists.txt right now but I think we still need it for the time being on CI
# Use makefiles on linux, otherwise it might use Ninja which isn't installed by default.
if(NOT DEFINED CMAKE_GENERATOR AND UNIX)
set(CMAKE_GENERATOR "Unix Makefiles")
endif()
is to be removed!
| ] } | ||
|
|
||
| cpp-prepare = "cmake -G Ninja -B build -S . -DCMAKE_BUILD_TYPE=Debug" | ||
| cpp-build = { cmd = "cmake --build build --config Debug --target rerun_sdk_tests", depends_on = [ |
There was a problem hiding this comment.
this does not yet work on my Mac. Gives me a ton of warnings from Arrow and eventually fails building. Needs some more love. But can wait, after all we haven't put this in the just file yet
|
forgot to try before. it doesn't like my venv apparently. Again, not critical for the first step since this is now all about just getting codegen pixi'fied for everyone, everything else is fine if it works just on one machine |
|
You should EITHER use venv or pixi. So run |
|
makes sense! With this in mind |
|
... but I had to push a bunch of fixes to make codegen actually do the same on windows |
pixi to run codegen in a portable way
This sub-module was introduced likely by mistake with #3707
### What This sub-module was introduced likely by mistake with #3707. ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Full build: [app.rerun.io](https://app.rerun.io/pr/4432/index.html) * Partial build: [app.rerun.io](https://app.rerun.io/pr/4432/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) - Useful for quick testing when changes do not affect examples in any way * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4432) - [Docs preview](https://rerun.io/preview/0800d294f0b7edbe91016137bbcde3b68ee49c43/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/0800d294f0b7edbe91016137bbcde3b68ee49c43/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

What
pixito replace our bash scripts and many of the Dockerfile layers #3717Add a proof-of-concept
pixi.tomlfile for the project.This is like Just but also takes care of dependency management for us. No need to run
setup_dev.shorpip install -r scripts/requirements-dev.txt.This even manages the installation of
arrow-cppfor us.Just:
Then have fun:
Verified this works in a clean Ubuntu-20.04 docker container.
Checklist