News for hackers. Stuff that matters.
Re:Microvenv: Create a Minimal Virtual Environment by drift_code on Friday December 22, 2023 @10:25AM (#38734991)
> The key purpose of this module is for when the venv module has been removed from the standard library by your Python distribution.

I find this confusing. Does Python have plan to deprecate its “venv”? It doesn’t make sense

Re:Microvenv: Create a Minimal Virtual Environment by nazarewk on Friday December 22, 2023 @10:42AM (#38735160)
I am pretty sure either Ubuntu and/or Debian stripped it from default Python install.
Re:Microvenv: Create a Minimal Virtual Environment by jmholla on Friday December 22, 2023 @10:25AM (#38734996)

    > Differences compared to the venv module
    >
    > The code operates similarly to py -m venv --symlinks --without-pip .venv, except that:
    >
    > There are no activation scripts (you can execute python in the virtual environment directly)
Minus the non-existence of activation scripts, is this not the case with normal virtual environments? I've always been able to invoke the python executable in the virtual environment directly and be in the proper environment. I believe the activation scripts just ensure your current shell uses the virtual environment's python rather than the system one or whatever you've configured your shell to use.
Re:Microvenv: Create a Minimal Virtual Environment by MrYellowP on Saturday December 23, 2023 @05:19AM (#38743079)
I never understood the need for virtual environments like this. In windows I use batchfiles running Subst to "activate" python installations to a specific "drive" and not only does it work greatly, it's also short, simple, transparent, flawless and independent of the work of others.
Re:Microvenv: Create a Minimal Virtual Environment by fortyseven on Saturday December 23, 2023 @11:17AM (#38745323)
When the rest of us downgrade to Windows, maybe we'll keep this post in mind.