News for hackers. Stuff that matters.
Re:Leaving Haskell Behind by impulser_ on Thursday August 24, 2023 @10:13PM (#37257091)
Have you tried Rye?

https://github.com/mitsuhiko/rye

This is probably the best package manager I used for Python. It feels a lot like Cargo. It sticks to the standards of Python. No custom lock files ect. Uses prebuilt Python so you don't have to build it. Handles global installs easily.

Re:Leaving Haskell Behind by movpasd on Friday August 25, 2023 @03:19AM (#37259020)
This is very interesting indeed! A lot of the design choices fix issues I've also personally encountered. The "experimental" dissuades me from using it for real projects, but I'll be keeping an eye on it.
Re:Leaving Haskell Behind by js2 on Friday August 25, 2023 @01:48PM (#37264758)
> Correctly installed, rye will automatically pick up the right Python without manually activating the virtualenv. That is enabled by having ~/.rye/shims at higher priority in your PATH.

I dislike this pattern. I don't want every language/tool manager in my PATH all the time. I much prefer the direnv. I hook only direnv into my shell. Then I can do what I need with an `.envrc` in each project directory.

Re:Leaving Haskell Behind by dcow on Saturday August 26, 2023 @03:46AM (#37270672)
I hate shell infection because 1) it only works in the shell, 2) it’s not stateless, and 3) depends on your working directory. I mean there’s a reason it’s called “shell infection”. Sounds like Rye specifically aims to address that issue. To each their own, I guess.