Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

You have a massage (from the Swedish prime minister).


devel / comp.lang.python / Re: virtualenv and make DESTDIR=

SubjectAuthor
o Re: virtualenv and make DESTDIR=Kirill Ratkin

1
Re: virtualenv and make DESTDIR=

<mailman.192.1646501190.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17380&group=comp.lang.python#17380

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: kvrat...@yandex.ru (Kirill Ratkin)
Newsgroups: comp.lang.python
Subject: Re: virtualenv and make DESTDIR=
Date: Sat, 5 Mar 2022 20:18:36 +0300
Lines: 47
Message-ID: <mailman.192.1646501190.2329.python-list@python.org>
References: <05a5b570-d917-2b25-33ea-560fcbd76ce8@goebel-consult.de>
<f23a331a-67af-dd9e-8bcd-fe64df133fd4@yandex.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de MrjtnBZ73dS306aX+QCJjwBghfTfX9B8PpbE7ozKT/8Q==
Return-Path: <kvratkin@yandex.ru>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=yandex.ru header.i=@yandex.ru header.b=WOhbO4a6;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.029
X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'url-ip:140.82.114/24':
0.03; 'url-ip:140.82/16': 0.03; 'used.': 0.07; 'url:github': 0.14;
'url-ip:140/8': 0.15; 'hartmut': 0.16; 'paths': 0.16; 'python3':
0.16; 'received:(client certificate not present)': 0.16; 'skip:$
20': 0.16; 'wrote:': 0.16; 'instead': 0.17; 'installing': 0.19;
'to:addr:python-list': 0.20; 'maybe': 0.22; 'install': 0.23;
'idea': 0.24; 'library': 0.26; 'environment': 0.29; 'it,': 0.29;
'header:User-Agent:1': 0.30; 'there': 0.33; 'header:In-Reply-
To:1': 0.34; 'running': 0.34; 'following': 0.35; 'use': 0.39;
'skip:$ 10': 0.40; 'want': 0.40; 'try': 0.40; 'skip:b 10': 0.63;
'thus': 0.64; 'tool': 0.65; 'skip:/ 10': 0.69; 'virtual': 0.71;
'url-ip:209/8': 0.76; 'received:37': 0.78; 'ship': 0.81; 'honor':
0.84; 'subject:make': 0.84; 'target,': 0.84
X-Yandex-Fwd: 2
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1646500717; bh=+xX7pTkW2Owp+qqAhM7su9ROwIzcTlpbdwfHa7ASP9Q=;
h=In-Reply-To:From:Subject:References:Date:Message-ID:To;
b=WOhbO4a66nUGNzSLbP0aQGOUmEuaMTUHqg3sCUimNk7/jYuEkH318bdeX2Gf5psgl
OLmF2oO6JTsEy4FewGMxA9x5ypZqRoa7pqf2G19NfGXhRL+w6dnvqt1dcpnCxcC6cO
F7m8h8SG8WgK+gPODkQWwoWGjT4JQwOVvh363EGI=
Authentication-Results: iva4-66d7931d4d60.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Content-Language: ru
In-Reply-To: <05a5b570-d917-2b25-33ea-560fcbd76ce8@goebel-consult.de>
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: <f23a331a-67af-dd9e-8bcd-fe64df133fd4@yandex.ru>
X-Mailman-Original-References: <05a5b570-d917-2b25-33ea-560fcbd76ce8@goebel-consult.de>
 by: Kirill Ratkin - Sat, 5 Mar 2022 17:18 UTC

Hi,

As far I know there is tool rpmvenv
(https://github.com/kevinconway/rpmvenv).

Try it, maybe ot helps.

04.03.2022 16:03, Hartmut Goebel wrote:
> Hi,
>
> How can I make installing a virtual environment honor DESTDIR? How can
> I install a virtual environment in $(DESTDIR)$(PREFIX), which behaves
> as being set-up in $(PREFIX)? (Of course, this virtual environment can
> not be used. My aim is to ship it as part of a rpm package)
>
> In Makefiles is good practice to honor DESTDIR in the "install"
> target, like this
>
> install:
>     install -t $(DESTDIR)$(PREFIX)/bin build/bin/my-tool
>
> Now when running
>
>     python3 -m venv $(DESTDIR)$(PREFIX)
>
> all paths in this virtual environment refer to $(DESTDIR)$(PREFIX)
> instead of just $$(PREFIX)
>
> Any ideas?
>
>
> Background:
>
> More about DESTDIR:
> https://www.gnu.org/prep/standards/html_node/DESTDIR.html
>
> Following Redhat's commendations, I want to install my (somewhat
> complex) software into /opt/my-software. To make it easier for users
> to use the software, my idea was to setup a virtual environment in
> /opt/my-software. Thus users can easily use
> /opt/my-software/bin/python and have the library provided by
> my-software available. My Software also includes some scripts, which
> will also reside in /opt/my-software/bin and refer to
> /opt/my-software/bin/python. This will avoid to require users to set
> up PYTHONPATH when thy want to use MY Software.
>
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor