lilyf,
@lilyf@fosstodon.org avatar

I just published a new tool for managing Python interpreters and virtualenvs called lilyenv. It is written in Rust and can be installed via cargo install lilyenv.

I wrote lilyenv as a replacement for my previous workflow using virtualenvwrapper and pyenv. The main goal is to make it easy to manage virtualenvs when working on a library that needs to support multiple python versions.

https://crates.io/crates/lilyenv
https://github.com/LilyFoote/lilyenv

CodenameTim,
@CodenameTim@fosstodon.org avatar

@lilyf I can't tell by looking at the readme if activate will auto-create the virtualenv for me.

This looks very neat and something I could have used on a few projects in the last month.

lilyf,
@lilyf@fosstodon.org avatar

@CodenameTim activate will automatically download the python interpreter and create the virtualenv for you. I'll update the readme to clarify that.

CodenameTim,
@CodenameTim@fosstodon.org avatar

@lilyf Very cool! That's very helpful

webology,
@webology@mastodon.social avatar

@lilyf This is pretty neat. Great work!

Since you mentioned virtualenvwrapper, do you have any plans for adding hook support like what they have?

lilyf,
@lilyf@fosstodon.org avatar

@webology I don't think I've ever used virtualenvwrapper's hooks, so I'm not really sure if that would be in scope. I'm open to understanding the use cases though.

webology,
@webology@mastodon.social avatar

@lilyf Gotcha, it's probably out of scope then.

(Passing this along in case you are curious, but lilyenv doesn't need it.)

Hooks are scripts that can be run pre or post-most events within the wrapper's execution.

They are handy for getting workflows just right where they might otherwise be hard to pull off.

https://virtualenvwrapper.readthedocs.io/en/latest/scripts.html#scripts

(these are the hidden feature of wrapper that keeps most of us using it)

lilyf,
@lilyf@fosstodon.org avatar

@webology Hmm, the example of setting environment variables is interesting, but I think out of scope for now. I'd probably use direnv for that.

https://direnv.net/

lilyf,
@lilyf@fosstodon.org avatar

@webology If there's anything else in your specific workflow you think I should consider, please share!

webology,
@webology@mastodon.social avatar

@lilyf thank you. I use direnv too.

Hooks are more helpful in setting up folders, running commands, keeping projects updated, or whatever else someone might dream up.

Seems out of scope, but I appreciate the follow up.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • kavyap
  • thenastyranch
  • cubers
  • ethstaker
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • everett
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • GTA5RPClips
  • JUstTest
  • khanakhh
  • normalnudes
  • osvaldo12
  • cisconetworking
  • provamag3
  • Durango
  • tacticalgear
  • modclub
  • Leos
  • megavids
  • tester
  • anitta
  • lostlight
  • All magazines