Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The generation of random numbers is too important to be left to chance.


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

SubjectAuthor
o Re: virtualenv and make DESTDIR=Barry Scott

1
Re: virtualenv and make DESTDIR=

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: bar...@barrys-emacs.org (Barry Scott)
Newsgroups: comp.lang.python
Subject: Re: virtualenv and make DESTDIR=
Date: Sat, 5 Mar 2022 20:39:13 +0000
Lines: 43
Message-ID: <mailman.196.1646512762.2329.python-list@python.org>
References: <05a5b570-d917-2b25-33ea-560fcbd76ce8@goebel-consult.de>
<F926CB1C-79DE-4833-A551-119B64B94675@barrys-emacs.org>
<7d513446-ca0e-cbc4-36dd-09007af51a83@goebel-consult.de>
<18D07A07-FB74-4046-95AA-F297C93385C7@barrys-emacs.org>
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de KvwygOY8ApyLsu8IhydHsARLEved1A75HYFCnothzVYA==
Return-Path: <barry@barrys-emacs.org>
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.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'this:': 0.03; 'mar': 0.07;
'cc:addr:python-list': 0.09; 'dependencies': 0.09;
'from:addr:barry': 0.09; 'received:217.70': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'schrieb': 0.09; 'url:de': 0.09; '2022,': 0.16; 'assuming': 0.16;
'barry': 0.16; 'blog:': 0.16; 'from:addr:barrys-emacs.org': 0.16;
'from:name:barry scott': 0.16; 'hartmut': 0.16; 'iso': 0.16;
'message-id:@barrys-emacs.org': 0.16; 'python3': 0.16;
'something?': 0.16; 'wrote:': 0.16; 'python': 0.16;
'cc:addr:python.org': 0.20; 'basically': 0.22; 'install': 0.23;
'code': 0.23; 'command': 0.23; 'skip:p 30': 0.23; 'cc:2**0': 0.25;
'etc': 0.28; 'assume': 0.32; "i'm": 0.33; 'url:blog': 0.33;
'script': 0.33; 'header:In-Reply-To:1': 0.34; 'means': 0.38;
'put': 0.38; 'management,': 0.40; 'something': 0.40; 'miss': 0.62;
'security': 0.64; 'skip:t 20': 0.66; 'lead': 0.67; 'received:217':
0.67; 'export': 0.69; 'skip:/ 10': 0.69; 'skip:/ 30': 0.69;
'subject:make': 0.84
In-Reply-To: <7d513446-ca0e-cbc4-36dd-09007af51a83@goebel-consult.de>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
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: <18D07A07-FB74-4046-95AA-F297C93385C7@barrys-emacs.org>
X-Mailman-Original-References: <05a5b570-d917-2b25-33ea-560fcbd76ce8@goebel-consult.de>
<F926CB1C-79DE-4833-A551-119B64B94675@barrys-emacs.org>
<7d513446-ca0e-cbc4-36dd-09007af51a83@goebel-consult.de>
 by: Barry Scott - Sat, 5 Mar 2022 20:39 UTC

> On 5 Mar 2022, at 19:56, Hartmut Goebel <h.goebel@goebel-consult.de> wrote:
>
> Am 05.03.22 um 17:34 schrieb Barry Scott:
>> Have the RPM install all the pythone code and dependencies and also install a short script that
>> sets up PYTHONPATH, LD_LIBRARY_PATH, etc and execs the python3 <main>.py.
> The scripts are already created by entry-points. So basically this means to reinvent the wheel. Or did I miss something?
>

For example I assume you need something like this:

#!/bin/bash
export PYTHONPATH=/opt/<apppath>/lib
exec /usr/bin/python3 /opt/<apppath>/lib/main.py "$@"

I'm assuming you put all the python code into /opt/<apppath>/lib
and any runnable command into /opt/<apppath>/bin

Barry

> --
> 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 <http://www.goebel-consult.de/>
> Blog: https://www.goe-con.de/blog/eilt-petition-auf-weact-gegen-vds-jetzt-unterschreiben <https://www.goe-con.de/blog/eilt-petition-auf-weact-gegen-vds-jetzt-unterschreiben>
> Kolumne: https://www.goe-con.de/hartmut-goebel/cissp-gefluester/2011-11-in-troja-nichts-neues <https://www.goe-con.de/hartmut-goebel/cissp-gefluester/2011-11-in-troja-nichts-neues>


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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor