Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A Linux machine! because a 486 is a terrible thing to waste! (By jjs@wintermute.ucr.edu, Joe Sloan)


devel / comp.lang.python / Re: Fwd: Installation hell

SubjectAuthor
o Re: Fwd: Installation hellThomas Passin

1
Re: Fwd: Installation hell

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: list1@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: Fwd: Installation hell
Date: Mon, 19 Dec 2022 17:53:16 -0500
Lines: 31
Message-ID: <mailman.1274.1671490825.20444.python-list@python.org>
References: <mailman.16182.1671363747.6178.python-list@python.org>
<CANAua_0w=+AaOvFp5iKg+0DXS71Dwqt0KbPy92-Aus6aQxR-YA@mail.gmail.com>
<CANAua_0DcJr6yqCsFsJ+W0+xA_-qgq6RDisoTqTAY9RHEnbbBA@mail.gmail.com>
<ab22b6db-bd51-cdaa-6ab3-c169d33b15a2@gmail.com>
<ad22650a-17bd-fe1c-d23d-fb273f99203d@tompassin.net>
<8a0665e8-c968-ade1-4530-657bca739fde@gmail.com>
<9a5c8d2c-7be3-d9c0-0e22-b16fdcbc955f@tompassin.net>
<657c8d6c-fac2-9973-fdce-7b1515aa0a23@tompassin.net>
<CAPTjJmrMBK+VQAM6Biv0d7RK7G7=561wvNGesxpBgsDNBAHmQw@mail.gmail.com>
<7f169067-a750-1ee2-d341-1089f746b81c@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de w5WK7ZfAjM2nuol5892B7w/h/ncCEVHRgV8RJukCDpJQ==
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=tLuEtbem;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2022': 0.05; 'windows,':
0.05; 'angelico': 0.09; '(windows': 0.16; '5:16': 0.16; '@echo':
0.16; 'another.': 0.16; 'bash': 0.16; 'batch': 0.16; 'but...':
0.16; 'drive,': 0.16; 'instance': 0.16; 'received:10.0.0': 0.16;
'received:23.83.209.151': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16;
'received:quail.birch.relay.mailchannels.net': 0.16; 'stick':
0.16; 'subject:Installation': 0.16; 'wrote:': 0.16; 'python':
0.16; 'pm,': 0.19; 'tue,': 0.19; 'to:addr:python-list': 0.20;
'code': 0.23; 'skip:p 30': 0.23; 'run': 0.23; '(and': 0.25;
'subject:Fwd': 0.26; 'chris': 0.28; 'header:User-Agent:1': 0.30;
'dec': 0.31; 'concern': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'path': 0.33; 'windows':
0.34; 'header:In-Reply-To:1': 0.34; "we're": 0.35; 'system,':
0.36; 'change': 0.36; 'really': 0.37; 'file': 0.38; 'could': 0.38;
'considering': 0.39; 'use': 0.39; 'here.': 0.61; 'here': 0.62;
'simply': 0.63; 'once': 0.63; 'look': 0.65; 'header:Received:6':
0.67; 'received:64': 0.67; 'following:': 0.69; 'obvious': 0.69;
'above,': 0.70; 'relevant': 0.73; 'yourself': 0.75; 'die': 0.76;
'effective': 0.78
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1671490397; a=rsa-sha256;
cv=none;
b=yzMPFNqauzXRy7xSrIRZd92op2VfyvwKXPX5q4ugex2DF0XUzC8fR9TTdHtA400yL2+CD6
Jz+aSHUR7Fk6RzcyKonIVTxdiBFkHfV23jWWbbG16lm4nwSA8pRLW1L9TmMTrw+oADjrKM
Gk4+yQppYgO/NVzO0UFmn+19hLG0aV4WDpEr3sQXJlh38jAj6lkZSShN51x4b+jMHRg7GR
wl7S8eBxk2Px532NhRyfRaPd0zIAjeQ+tZ94IEBt0sggDWdtmMAF9ZJfjZp7TwJ8djNt6x
6lCYX/83BmIJmcdZu5CP2GcBpVgRraSA6OmrXX97tI3wi0c3ru8zIMa+q6hlmw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1671490397;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=a8Nk2U1kuvECVYhU9a0IYoHGsO+pEqODAqsMcQkyu8M=;
b=Lyhx5C+R/nGjL8msl+yjHmHUm6oFpNrXkUup/2gDZIJZHPyV+M6PXmDLoS65Pqn9RGuT3o
gUcsYeMyvoitFiJFT5RhBfTdPpse95CBBjrwOicsoYC/KpfbP5jqn4rDG1F422gCAKAzd5
EQGIVmavjbLINIfQiR+/dEEPh91pzk3k4rE+8Su/wgTinYZHZcE+nZ7Yovt24TO21UYk5y
D8gfgSFjIFy2VOvcHs3FEFoDxHnM5zHWqqOb2K4xi4nbpy3iLi3M+N3QZ0IbXnqSTJoDAV
MIaNRHk2tk3SI1J3uuXX7k/XY8LDR58h2PEFKNazNqADNRippSdU3cT8gmOEEg==
ARC-Authentication-Results: i=1; rspamd-6f8d97c84c-c52ww;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Irritate-Little: 04daabae11d69ae1_1671490398130_1656197444
X-MC-Loop-Signature: 1671490398129:4181664122
X-MC-Ingress-Time: 1671490398129
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1671490397;
bh=a8Nk2U1kuvECVYhU9a0IYoHGsO+pEqODAqsMcQkyu8M=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=tLuEtbemjXpH7d1rLYnSEK31DwtueqJJppAZGogrqsivaDVQxzK2eKiP0YnaTWRh9
YIhIKkDB9GXLsthK9F5tiBEApmGPJODW7JVK6BjdYoFOpUxd/ukDdEqevWyoImYodl
hP1J+2wARjQfMBY+ppuzAiD4IP+6AbB1KZ7EqS1VfjKNVX9Tf3GR5YRa8vPNtwRri5
fo6iFEHKSUrEBbaaeJV9VLfn4PdnLQH1hkOrZ+HUB/S4HSrRsq2INsZJ2i5Krv5X/p
o7bd0n0KgOSpesL5L5bEymf3RIFxrCVVgUlJfMmkk9cqu7tdeaLMlooPlZIeZx0X2E
f3abP6E20uWdQ==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
Content-Language: en-US
In-Reply-To: <CAPTjJmrMBK+VQAM6Biv0d7RK7G7=561wvNGesxpBgsDNBAHmQw@mail.gmail.com>
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: <7f169067-a750-1ee2-d341-1089f746b81c@tompassin.net>
X-Mailman-Original-References: <mailman.16182.1671363747.6178.python-list@python.org>
<CANAua_0w=+AaOvFp5iKg+0DXS71Dwqt0KbPy92-Aus6aQxR-YA@mail.gmail.com>
<CANAua_0DcJr6yqCsFsJ+W0+xA_-qgq6RDisoTqTAY9RHEnbbBA@mail.gmail.com>
<ab22b6db-bd51-cdaa-6ab3-c169d33b15a2@gmail.com>
<ad22650a-17bd-fe1c-d23d-fb273f99203d@tompassin.net>
<8a0665e8-c968-ade1-4530-657bca739fde@gmail.com>
<9a5c8d2c-7be3-d9c0-0e22-b16fdcbc955f@tompassin.net>
<657c8d6c-fac2-9973-fdce-7b1515aa0a23@tompassin.net>
<CAPTjJmrMBK+VQAM6Biv0d7RK7G7=561wvNGesxpBgsDNBAHmQw@mail.gmail.com>
 by: Thomas Passin - Mon, 19 Dec 2022 22:53 UTC

On 12/19/2022 5:16 PM, Chris Angelico wrote:
> On Tue, 20 Dec 2022 at 09:12, Thomas Passin <list1@tompassin.net> wrote:
>> FWIW, I once set up a Python installation so that it could run from a
>> USB stick (Windows only). My launcher was a batch file that contained
>> the following:
>>
>> @echo off
>> setlocal
>> : Find effective drive for this file.
>> set ed=%~d0
>> path %ed%\python37\Scripts;%ed%\python37;%PATH%
>> set PYTHONUSERBASE=%ed%\user\python
>> set HOME=%ed%\user\python
>> call python %*
>> endlocal
>>
>
> So much easier to do on a Unix-like system, where you don't need to
> concern yourself with "effective drive" and can simply use relative
> paths. I know we're not here to bash Windows, but... drive letters
> really need to just die already.

Considering that this was for a removable drive, the launcher needed to
know its own location, which might change from one instance to another.
If you look at the code above, you won't find an obvious drive letter.
You would need to do the equivalent on Linux. The Windows drive letter
is just not relevant here.

(and I thought we weren't going keep on bashing non-preferred operating
systems).


devel / comp.lang.python / Re: Fwd: Installation hell

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor