virtualenv isn't reproducible! (by default) (intermediate) anthony explains

  Рет қаралды 4,703

anthonywritescode

anthonywritescode

Күн бұрын

Пікірлер: 9
@KORraNpl
@KORraNpl 2 жыл бұрын
That's... surprising. And do you know how venv behaves? I thought that one of the reasons why virtualenv is so much faster than venv is because it doesn't perform any networking in the background.
@Bryft
@Bryft 2 жыл бұрын
You suggested to use these flags in docker. But how to get a stable version of virtualenv in a docker image? I remember the video about bootstrapping it from downloaded pyz, but maybe in docker it's better to 'pip install' it with the '==', so we always have the same version?
@anthonywritescode
@anthonywritescode 2 жыл бұрын
you can select a consistent pyz file from github.com/pypa/get-virtualenv/tree/main/public
@Bryft
@Bryft 2 жыл бұрын
@@anthonywritescode got it, thanks!
@r4vik
@r4vik 2 жыл бұрын
Should we even bother with virtualenv in docker?
@anthonywritescode
@anthonywritescode 2 жыл бұрын
yes absolutely -- messing with the system python is a recipe for disaster
@r4vik
@r4vik 2 жыл бұрын
@@anthonywritescode obviously not with python:3-buster image or python:3-slim but alpine should be ok.. there isn't anything installed in the "system python" e.g. podman run --rm -it python:3-alpine sh -c "ls /usr/local/lib/python3.11/site-packages" README.txt distutils-precedence.pth pip-22.3.dist-info setuptools wheel _distutils_hack pip pkg_resources setuptools-65.5.0.dist-info wheel-0.38.4.dist-info
@anthonywritescode
@anthonywritescode 2 жыл бұрын
every modern linux os, yes even alpine, uses python packages as part of its system
@alsonyang230
@alsonyang230 Жыл бұрын
​@@anthonywritescode Can you make a video on what kind of issues we could run into if we dont use virtual env in docker? I would have thought Docker already provides the benefit of virtual env, which is an isolated env
--extra-index-url is unsafe! (intermediate) anthony explains #502
10:31
anthonywritescode
Рет қаралды 3,8 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 46 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
The Minecraft Movie memes are way too good.
8:10
Phoenix SC
Рет қаралды 151 М.
how do virtualenvs actually work (advanced) anthony explains #522
16:55
anthonywritescode
Рет қаралды 7 М.
adding test == others fail??? (intermediate) anthony explains #572
10:40
anthonywritescode
Рет қаралды 4,3 М.
It’s time to move on from Agile Software Development (It's not working)
11:07
Best 10 Items I Tested in 2024!
20:12
Project Farm
Рет қаралды 371 М.
why I will never use python-poetry
9:09
anthonywritescode
Рет қаралды 63 М.
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 129 М.
How and why I switched to Linux
12:22
Thoroughmas
Рет қаралды 251 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН