Comments (2)
The Python binaries we are currently distribution are relying on glibc and dynamic loading of libraries. The way NixOS works, we would either have to rely on a system python (which somewhat defeats the purpose of rye) or rely on static Python builds (with their own limitations).
NixOS is very specific about how they deal with dynamic loading. It is basically impossible to download a binary and have it "just work" (unless it's fully static), since NixOS binaries are either build within NixOS and directly refer to libraires in the nix store (/nix/...
) or the elf is patched to find the right dynamic libray in the nix store (since /usr/lib, etc isn't populated).
I think it would be best for NixOS to provide it's own patched rye
in nixpkgs, that relies on system python. Alternatively one would provide a set of nix expressions that allow for registering nixpkgs Python as rye toolchains. This way one could easily build a flake that pulls in NixOS Python packages. Notable, maybe you have luck with using a FHS environment with rye.
For now, I think (I am not the maintainer, so that's all Armin's call), given the nature of NixOS and software for NixOS, it is out of scope to support NixOS.
from rye.
The Python binaries we are currently distribution are relying on glibc and dynamic loading of libraries. The way NixOS works, we would either have to rely on a system python (which somewhat defeats the purpose of rye) or rely on static Python builds (with their own limitations).
NixOS is very specific about how they deal with dynamic loading. It is basically impossible to download a binary and have it "just work" (unless it's fully static), since NixOS binaries are either build within NixOS and directly refer to libraires in the nix store (
/nix/...
) or the elf is patched to find the right dynamic libray in the nix store (since /usr/lib, etc isn't populated).I think it would be best for NixOS to provide it's own patched
rye
in nixpkgs, that relies on system python. Alternatively one would provide a set of nix expressions that allow for registering nixpkgs Python as rye toolchains. This way one could easily build a flake that pulls in NixOS Python packages. Notable, maybe you have luck with using a FHS environment with rye.For now, I think (I am not the maintainer, so that's all Armin's call), given the nature of NixOS and software for NixOS, it is out of scope to support NixOS.
Got it, thanks for the tip about using an FHS environment, I'll try to solve the problem for now.
from rye.
Related Issues (20)
- Suggestion: Easy way to launch rye test in debugger mode with debugpy
- TOML parser raises when inline table is spread on multiple lines HOT 3
- New flag for command rye sync
- Unable to connect to https://rye-up.com/get ? HOT 17
- installer: `.profile` is not used by Bash (or Zsh); edit `.bash_profile` or `.bash_login` (Bash) or `.zprofile` (Zsh) too HOT 1
- SSL issues with indygreg 3.10 on RHEL
- Global shims in projects not managed by rye HOT 4
- PowerShell Completion label has changed from `powershell` to `power-shell`. HOT 2
- Fails to install offline HOT 2
- Migration from other project management tools like `pdm` or `poetry` HOT 1
- `rye sync --update-all` should imply `UV_NO_CACHE=true` HOT 1
- Invalid peer certificate: UnknownIssuer
- Unable to install `playsound` with rye, but works with pip (Python 3.12) HOT 3
- Add each package to `PYTHONPATH`
- Global package installs have odd dependencies HOT 1
- Windows Installer is unsigned
- rye run -l prints to stderr HOT 6
- rye build gives "Not a directory" HOT 2
- Creating multiple lock files
- Python version mismatch only installs non-dev dependencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rye.