Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I don't think it's worth washing hogs over. -- Larry Wall in <199710060253.TAA09723@wall.org>


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

SubjectAuthor
o virtualenv and make DESTDIR=Hartmut Goebel

1
virtualenv and make DESTDIR=

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: h.goe...@goebel-consult.de (Hartmut Goebel)
Newsgroups: comp.lang.python
Subject: virtualenv and make DESTDIR=
Date: Fri, 4 Mar 2022 14:03:50 +0100
Organization: Goebel Consult
Lines: 52
Message-ID: <mailman.160.1646399040.2329.python-list@python.org>
References: <05a5b570-d917-2b25-33ea-560fcbd76ce8@goebel-consult.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de prawl3UI3Nb06TTpae1iaA9Ipv8wv3GPVcyUlGjSf2bw==
Return-Path: <h.goebel@goebel-consult.de>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.136
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.74; '*S*': 0.01; 'used.': 0.07; 'url:de':
0.09; 'blog:': 0.16; 'hartmut': 0.16; 'iso': 0.16; 'paths': 0.16;
'python3': 0.16; 'received:217.72.192.75': 0.16; 'skip:$ 20':
0.16; 'instead': 0.17; 'installing': 0.19; 'to:addr:python-list':
0.20; 'install': 0.23; 'received:de': 0.23; 'idea': 0.24;
'library': 0.26; 'environment': 0.29; 'header:User-Agent:1': 0.30;
'header:Organization:1': 0.31; 'received:kundenserver.de': 0.32;
'received:mout.kundenserver.de': 0.32; 'url:blog': 0.33;
'running': 0.34; 'following': 0.35; 'received:192.168': 0.37;
'use': 0.39; 'management,': 0.40; 'skip:$ 10': 0.40; 'want': 0.40;
'skip:b 10': 0.63; 'security': 0.64; 'thus': 0.64; 'lead': 0.67;
'received:217': 0.67; 'skip:/ 10': 0.69; 'virtual': 0.71; 'url-
ip:209/8': 0.76; 'ship': 0.81; 'honor': 0.84;
'received:192.168.110': 0.84; 'received:79': 0.84; 'subject:make':
0.84; 'target,': 0.84
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Content-Language: en-US
X-Provags-ID: V03:K1:4Rzie+6Sz4DfR/0jBw3bnO3E71IkdHdAKbs4wBufMVsH1vgn6QO
OeJs040hP5356G/uMBvWeVeMufSJaWf6dmZlFtYkKp27BTb5a0LBD+kgU81iSMDgREodCk5
pcrpAosDMh40sF4KwyeStAXsCqi3zc4sJrMa34A5P91ub4koEYquWxlnaNzGSGidhYkKupc
FoldtVdneWsUi2Q4CSlBA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:j/XQ8HJd3L8=:XC7P0PZDi0C20lyWA6NCO6
n0/7YhiICYy/HHOChr8ejlWi7p0x4g128OMFQ7SsJzRFv0ATYKQCH+wlGG5bjF43qwY4td4ZA
Al3TeMU0F0k/QiOeSIGRc7xoE8ExBKZ773u4F5P4kJV33OFSEaJBCdXupb8CgGJZS35d/cZiY
22UkntJhNP393R4za2NCm7a5B9fdtgoc9jZcLq00S8uVdIumSHK4Pncy4FOcEAdzAeFL2AK4K
RIpnEwRdbr+rSVMGWrV3DdbPETzDFeexdTjbGLDUN4+fAexUK1mEE8b9hu6r2+kUYYrm3nA/x
zyTd/X95qlZ/5a423KEAyo047115Pk1OhkXDzF+xlvyq7TQoY/NZbTttxOIQNCMK8C4mfkM8t
Bb9nuzWvRmpzOkc7LUcRvWfj+cltnce6szY8g7hoDmttoyaexmVxPaU6Y1u2D5zlXC/ix6CeU
m/t14dQ/Bauf4WUgnE1LLXAk30YTuOwGxibiLiDgDjy0HpLjIir0D6+w+nklEbc4tHrghmLma
aimOmRBPswoVhpYKw2nufWKB250MI7LOjool/DFdpgZxkQjvatY2eSpGM3c9b7OKOmEL1MpCI
0yUsGbCxCvKRU14ZAJ56krU294HIqxvKwA+u1cpUqiwaV1o0PFlM04wh4waFF0/TwqkJL2vHc
GtgGrGAf/VgAPcnc7XX1hsyktV00PSvRBvLb9pAB1ntQWmJR0OfkD1D7cC6bBMK2hV177aic3
mV1Gjd1lCNbOGPao
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: <05a5b570-d917-2b25-33ea-560fcbd76ce8@goebel-consult.de>
 by: Hartmut Goebel - Fri, 4 Mar 2022 13:03 UTC

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.

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: https://www.goe-con.de/blog/why-a-pki-is-barely-trustworthy
Kolumne:
https://www.goe-con.de/hartmut-goebel/cissp-gefluester/2011-11-in-troja-nichts-neues

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor