Re: Best Practice Virtual Environment

Liste des GroupesRevenir à cl python 
Sujet : Re: Best Practice Virtual Environment
De : transreductionist (at) *nospam* gmail.com (transreductionist)
Groupes : comp.lang.python
Date : 06. Oct 2024, 19:30:24
Autres entêtes
Message-ID : <mailman.2.1728235839.4695.python-list@python.org>
References : 1 2 3 4
This is how we handle this problem at a large organization.

In the repository there are a number of build scripts. For convenience we
use poetry (poetry.toml) to manage the virtual  environment. A
pyproduct.toml is used to define dependencies, how tests are run, the
linter config, etc.

So there are scripts for poetry lock, poetry install, and whatever else is
needed.

A user pulls down the repository and runs
1. poetry lock
2. poetry install
And they have their environment with the proper dependencies.

On Sun, Oct 6, 2024, 09:47 Karsten Hilbert via Python-list <
python-list@python.org> wrote:

Am Sun, Oct 06, 2024 at 12:21:09AM +0200 schrieb Karsten Hilbert via
Python-list:
>
Am Sat, Oct 05, 2024 at 10:27:33PM +0200 schrieb Ulrich Goebel via
Python-list:
>
Debian (or even Python3 itself) doesn't allow to pip install required
packages system wide, so I have to use virtual environments even there. But
is it right, that I have to do that for every single user?
>
Can someone give me a hint to find an howto for that?
>
If you do find how to cleanly install non-packaged modules
in a system-wide way (even if that means installing every
application into its own *system-wide* venv) - do let me
know.
>
It seems dh-virtualenv is one way to do it. On Debian.
>
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B
--
https://mail.python.org/mailman/listinfo/python-list
>

Date Sujet#  Auteur
6 Oct 24 o Re: Best Practice Virtual Environment1transreductionist

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal