Deutsch   English   Français   Italiano  
<mailman.3.1728235883.4695.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: transreductionist <transreductionist@gmail.com>
Newsgroups: comp.lang.python
Subject: Re: Best Practice Virtual Environment
Date: Sun, 6 Oct 2024 13:31:09 -0400
Lines: 49
Message-ID: <mailman.3.1728235883.4695.python-list@python.org>
References: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
 <ZwG71fmSkKa2v3QY@hermes.hilbert.loc> <ZwKUIkU5zQLmIaWr@hermes.hilbert.loc>
 <CAEM3OOv7aXBCOoDpXeL6TvTYU+eHrDAM1_LOkyx15hzxUOvigg@mail.gmail.com>
 <CAEM3OOtt=-75y33B-pKSdQUXXwvv4b3Z17CYnNFD_6ZE+x9+dg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de RPKdZcoVA7vIy0t1Dw34Ow03ZpIK6ZAEnou9wT5PxAqg==
Cancel-Lock: sha1:bmNFLAqgH5vg5nYOlpYULonxyD4= sha256:N8Yo3qm8Z9hqN+WtQ0ArDNw11+fCEN1ba5JJXlHZr+A=
Return-Path: <transreductionist@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="2048-bit key; unprotected key"
 header.d=gmail.com header.i=@gmail.com header.b=FfR7ysPR;
 dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'repository':
 0.05; 'modules': 0.07; 'scripts.': 0.07; 'sun,': 0.07; 'tests':
 0.07; 'that?': 0.07; '+0200': 0.09; 'cc:addr:python-list': 0.09;
 'debian': 0.09; 'email addr:python.org>': 0.09; 'environments':
 0.09; 'gpg': 0.09; 'install,': 0.09; 'karsten': 0.09; 'schrieb':
 0.09; '>': 0.14; 'cc:no real name:2**0': 0.14; 'url:mailman':
 0.15; '(even': 0.16; '1713': 0.16; '2024': 0.16; 'cleanly': 0.16;
 'hilbert': 0.16; 'hint': 0.16; 'python3': 0.16; 'run,': 0.16;
 'wrote:': 0.16; 'problem': 0.16; 'installing': 0.19;
 'cc:addr:python.org': 0.20; 'sat,': 0.22; 'install': 0.23; 'url-
 ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
 'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
 'seems': 0.26; 'else': 0.27; 'email addr:python.org>': 0.28;
 'environment': 0.29; 'packages': 0.31; 'url-ip:188/8': 0.31;
 "doesn't": 0.32; 'python-list': 0.32; 'right,': 0.32; 'message-
 id:@mail.gmail.com': 0.32; 'but': 0.32; 'there': 0.33; 'someone':
 0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
 'runs': 0.35; 'from:addr:gmail.com': 0.35; 'way': 0.38; 'means':
 0.38; 'single': 0.39; 'handle': 0.39; 'use': 0.39; 'define': 0.40;
 'skip:o 10': 0.61; 'skip:b 10': 0.63; 'down': 0.64; 'lock': 0.64;
 'required': 0.65; 'let': 0.66; 'know.': 0.68; 'virtual': 0.71;
 'skip:* 10': 0.71; 'manage': 0.73; 'email name:<python-list':
 0.84; 'subject:Virtual': 0.84; 'convenience': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1728235880; x=1728840680; darn=python.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=vmleGdJuAXFfmyfKyXqC0I/kjpFryIgX6ry5MGLwGt8=;
 b=FfR7ysPRxsby2yfjHAY8wIMG+b7xjTYWdCkjLQ93HC1t50zS22Jsndq7WOzhy5MOoG
 p4S4ObgMBIXnv0Uw0CyXpGW37rc6g4/ulNbRUk0ZF4fsSXN69vyG8lOhqDG46WpvW732
 t6y5DT6NcpXdNIJeG0A9Ujgtbrwm7j0ZOxBl7C/p1wijTdPfeId4j5c990/TRaEa0GBf
 3INM0D+M6rmT5mhDug99P1aNcPSI6A7KohmgHJ8XSgWb9gew8GCf1cGH1y0UztlaUMkM
 bPcUnbyYDC2tc0u508lAJypX22FMTtq3YdWSCi71eaMe0WdInULb5CksBPlHgP8MtSjI
 02aQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1728235880; x=1728840680;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=vmleGdJuAXFfmyfKyXqC0I/kjpFryIgX6ry5MGLwGt8=;
 b=HffJqRPpVQ9UsyXchMq7/IgE/Xy2fjjYFCvmjgSjYlyWuVTpiClLOKhmYJPcrx4xB3
 Mfr4PwUbaffKT6odhEbBNK+2ve0okCPRhlAFyzLXP9KNgbrwYyL3C1sglxyWRc9To8ck
 4zlnoUoG35ZMnw79aI0BXEnNZgzK4URsZI6y1APpH2UniCIt6+WvcEZiXph970JQuewL
 xW8J1/8H4ZiSYCnqEq7hnNhLJsbLYfvAuoGqPDsDylKYmb/FdflNLCTr53Iq551wPXfV
 8Gqpx+Sw/Xqf2mb3mpw10ymNDCs1dKp/M1olR7cEOZW3JXBMl4pbYyc48EsgxFNmr4f0
 kI0g==
X-Gm-Message-State: AOJu0Yy6YcWLoJtVrjKFkPRRyuXfsr9/hcoe4emVRWr4LQQ6daBepO9b
 yXAdgmCrxHPB0k4m7tfI7GUVjBa88RMgcHbYPj4sKI3zfWDZaG61Ebk3iZiqGGJr8fOPs202ji4
 mClanPdXrWJ9fQmoFrvjRFhk6T3dToQ==
X-Google-Smtp-Source: AGHT+IGzcTH/EFtwMk5pHuLK1ZoOnL22IoYiaPGotRJr864HiZAxYMCSRY8Ci3ywueHczjDSCXAp0nZxck7n2+gNnsA=
X-Received: by 2002:a05:6871:889:b0:277:d9f6:26f6 with SMTP id
 586e51a60fabf-287c1da9f98mr5549281fac.12.1728235879950; Sun, 06 Oct 2024
 10:31:19 -0700 (PDT)
In-Reply-To: <CAEM3OOv7aXBCOoDpXeL6TvTYU+eHrDAM1_LOkyx15hzxUOvigg@mail.gmail.com>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAEM3OOtt=-75y33B-pKSdQUXXwvv4b3Z17CYnNFD_6ZE+x9+dg@mail.gmail.com>
X-Mailman-Original-References: <20241005222733.fd60f7e672e849aa63c8b360@fam-goebel.de>
 <ZwG71fmSkKa2v3QY@hermes.hilbert.loc> <ZwKUIkU5zQLmIaWr@hermes.hilbert.loc>
 <CAEM3OOv7aXBCOoDpXeL6TvTYU+eHrDAM1_LOkyx15hzxUOvigg@mail.gmail.com>
Bytes: 7345

byproduct.toml

On Sun, Oct 6, 2024, 13:30 transreductionist <transreductionist@gmail.com>
wrote:

> 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
>>
>