Skip to content

Comments

build: Bump rattler dependencies#138

Merged
pavelzw merged 10 commits intomainfrom
bump-dependencies-12345
Apr 25, 2025
Merged

build: Bump rattler dependencies#138
pavelzw merged 10 commits intomainfrom
bump-dependencies-12345

Conversation

@pavelzw
Copy link
Member

@pavelzw pavelzw commented Apr 24, 2025

Motivation

required for #136

Changes


If updating documentation:

@github-actions github-actions bot added the build label Apr 24, 2025
src/unpack.rs Outdated
Comment on lines 66 to 78
// HACK: The `Installer` created below, as well as some code in building
// packages from source will utilize rayon for parallelism. By using rayon
// it will implicitly initialize a global thread pool. However, uv
// has a mechanism to initialize rayon itself, which will crash if the global
// thread pool was already initialized. To prevent this, we force uv the
// initialize the rayon global thread pool, this ensures that any rayon code
// that is run will use the same thread pool.
//
// One downside of this approach is that perhaps it turns out that we won't need
// the thread pool at all (because no changes needed to happen for instance).
// There is a little bit of overhead when that happens, but I don't see another
// way around that.
LazyLock::force(&RAYON_INITIALIZE);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also xref rayon-rs/rayon#93

@pavelzw pavelzw marked this pull request as ready for review April 25, 2025 09:08
@pavelzw pavelzw requested a review from delsner as a code owner April 25, 2025 09:08
@pavelzw pavelzw changed the title build: Bump dependencies build: Bump rattler dependencies Apr 25, 2025
Copy link
Member

@delsner delsner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for figuring this out!

@pavelzw pavelzw enabled auto-merge (squash) April 25, 2025 09:16
@pavelzw pavelzw disabled auto-merge April 25, 2025 09:18
@pavelzw pavelzw enabled auto-merge (squash) April 25, 2025 09:23
@pavelzw pavelzw merged commit 4abd65d into main Apr 25, 2025
17 checks passed
@pavelzw pavelzw deleted the bump-dependencies-12345 branch April 25, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants