Skip to content

freeze-stdlib is broken on windows #5755

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

Open
arihant2math opened this issue Apr 28, 2025 · 1 comment
Open

freeze-stdlib is broken on windows #5755

arihant2math opened this issue Apr 28, 2025 · 1 comment
Labels
A-packaging About the packaging of RustPython crates C-bug Something isn't working

Comments

@arihant2math
Copy link
Collaborator

Since the symlink is non-functional on windows.

The following works as a patch for me:

#[cfg(feature = "freeze-stdlib")]
pub const FROZEN_STDLIB: &rustpython_compiler_core::frozen::FrozenLib =
    rustpython_derive::py_freeze!(dir = "../Lib", crate_name = "rustpython_compiler_core");

I don't know if there are unintended consequences however.

@arihant2math
Copy link
Collaborator Author

The solution is to run the following in the repo:

git config core.symlinks true

@arihant2math arihant2math added C-bug Something isn't working A-packaging About the packaging of RustPython crates labels May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-packaging About the packaging of RustPython crates C-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant