Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and may be fixed. Will keep monitoring.


devel / comp.lang.python / Changing 'Scripts/*.exe'

SubjectAuthor
* Changing 'Scripts/*.exe'Gisle Vanem
+- Re: Changing 'Scripts/*.exe'Stefan Ram
`* Re: Changing 'Scripts/*.exe'Meredith Montgomery
 `* Re: Changing 'Scripts/*.exe'Stefan Ram
  +- Re: Changing 'Scripts/*.exe'Dennis Lee Bieber
  `* Re: Changing 'Scripts/*.exe'Meredith Montgomery
   +- Re: Changing 'Scripts/*.exe'dn
   `* Re: Changing 'Scripts/*.exe'2QdxY4RzWzUUiLuE
    `- Re: Changing 'Scripts/*.exe'Greg Ewing

1
Changing 'Scripts/*.exe'

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: gva...@yahoo.no (Gisle Vanem)
Newsgroups: comp.lang.python
Subject: Changing 'Scripts/*.exe'
Date: Sat, 1 Oct 2022 17:50:14 +0200
Lines: 20
Message-ID: <mailman.512.1664639421.20444.python-list@python.org>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de Y/5aQuxdm7DSjH8d5QUd2Qcia6tUV5m59MCuBzuzi6og==
Return-Path: <gvanem@yahoo.no>
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=yahoo.no header.i=@yahoo.no header.b=Y59jUSSu;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.015
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python?': 0.03; 'e.g.':
0.07; 'wrong.': 0.07; 'fails': 0.09; 'moved': 0.09;
'subject:Scripts': 0.16; 'to:addr:python-list': 0.20; 'old': 0.27;
'header:User-Agent:1': 0.30; 'program': 0.31; "i'm": 0.33;
'there': 0.33; 'path': 0.33; 'fix': 0.36; "skip:' 10": 0.37;
'way': 0.38; 'received:77': 0.67; 'easy': 0.74; 'skip:f 20': 0.75
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.no; s=s2048;
t=1664639420; bh=jyR+BpQl0mLQBqaW9ciM3llQApjpWrjw2NxKrbvhA5k=;
h=To:From:Subject:Date:References:From:Subject:Reply-To;
b=Y59jUSSuK6HpVdEaxW7w95nhZFA0lW6FV1qXcPpgo994vRzLOluMyvYyMx6TQf6VOXlzcj844ZMzrnceU0DQQ6FJemE+LhYupxJ1PoLboQ3zLcvRmF/+wV+DqiQoupYeay6eAr2P7OpbCPBgshX6HfyskhYvWo2m7i5K9XzMkajlfTo5bRisH4BbipgXY2PktJrg68RnppHfrVmb6b8iYIMj+SnwetLIJ7lwZ4C0uzpNipXBTG7jsDTBPzlou2wwmw3Vg9/Bw+taeuyVH6M0X92mtyMky2If3ERBnQSx0RtT8KZHvld7V2rgXyzdCKRoxLARJ34dPIlp3wk50cR9SQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1664639420; bh=0CK5BmQDQAhMDf2Is1692O1oNdTFkR80ZOJEXXtRTmq=;
h=X-Sonic-MF:To:From:Subject:Date:From:Subject;
b=MeYfOscRcO5+QawqHK1FRG5t1YMMgDuuH2uS86jWtWg6ETEmI5aVvqdYW6OX8d+cwU1fvx1vSo/bEcIEfT2u4VIMu7WCABYxdK2IShxpjoYB6AxPemXA4/6b3p7bLZzSA4DCOmwwJ1TUb4EhkOwhP7xu1pC9nxX9XnomTblgBJJ4MJDdpK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tGzqaNIjBgs69L9Fj23cvULM
MacjDGLP_qzqvweQn_LeovxqTF4I.2EgwE2HH9Nom5b3tzgTOyDjT0kN83m7h43SBNKq9CsiAkc0
Z4XAZmhnJ1y0ljuJ76OhVUjpU6lEQSEypq6Ilewa0LmCoNaXguVagbOJYestlakfGF7LnHpnDFB_
Hq2NhhPvQTCRbglSHQgbFekHtkgxE938skeYqrCn.Zs4NYUFTmQf8TKldadjDed7v4jQeZFYA7Zb
cBvxX0iiJXYOdFvh.gON1mSvgOzm9c7toV.VlKg5t6_kn2TBZ_74FNK5K8y_XeQ--
X-Sonic-MF: <gvanem@yahoo.no>
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
Content-Language: en-GB
X-Mailer: WebService/1.1.20702
mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
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: <e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
X-Mailman-Original-References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
 by: Gisle Vanem - Sat, 1 Oct 2022 15:50 UTC

Hello list.

I'm moved my old Python27 installation from
f:\ProgramFiler\Python27 ( == 'ProgramFiles')
to
f:\gv\Python27

and now many 'scripts/*.exe' program fails
to start since the old path to 'Python.exe'
is wrong.

E.g. 'Scripts/pip2.exe' has the path
"f:\programfiler\python27\python.exe" hard-coded
inside it.

Is there a easy way to fix this w/o re-installing this
old Python?

--
--gv

Re: Changing 'Scripts/*.exe'

<path-20221001172909@ram.dialup.fu-berlin.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: 1 Oct 2022 16:43:10 GMT
Organization: Stefan Ram
Lines: 32
Expires: 1 Sep 2023 11:59:58 GMT
Message-ID: <path-20221001172909@ram.dialup.fu-berlin.de>
References: <mailman.512.1664639421.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de MVqyCpV72XlGg5PIpyuTdA6WLfepQrnMOWb+2P6IYd37Bu
X-Copyright: (C) Copyright 2022 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE, en-US, it, fr-FR
 by: Stefan Ram - Sat, 1 Oct 2022 16:43 UTC

Gisle Vanem <gvanem@yahoo.no> writes:
>and now many 'scripts/*.exe' program fails
>to start since the old path to 'Python.exe'
>is wrong.

(The following information was obtained by looking at one
Python installation under one Version of the Microsoft®
Windows operating system. If you use different versions,
this information might not apply.)

The old path is in all those *.pyc files from the
__pycache__ directories in the Python directory.
Maybe one can delete them all? Other files with the
path might be "default.cfc" and "vba_extract.py".

And you need to search and replace the old path under some
registry keys, such as keys the names of which start with

HKEY_CLASSES_ROOT\Python
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer
HKEY_CURRENT_USER\Software\Classes\Python
HKEY_CURRENT_USER\Software\Python

and possibly for other users (beneath CURRENT_USER)
if there are such other users.

One could also uninstall and reinstall Python, but maybe
then one needs to save one's own project files before
uninstalling, because Python might have stored some of them
in its own directory (where it was installed).

Re: Changing 'Scripts/*.exe'

<8635c6bb0b.fsf@levado.to>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!aioe.org!0rig0NiFR7hOPAV101SwdA.user.46.165.242.91.POSTED!not-for-mail
From: mmontgom...@levado.to (Meredith Montgomery)
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: Sun, 02 Oct 2022 10:39:16 -0300
Organization: Aioe.org NNTP Server
Message-ID: <8635c6bb0b.fsf@levado.to>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
<mailman.512.1664639421.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="619"; posting-host="0rig0NiFR7hOPAV101SwdA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
Cancel-Lock: sha1:WUA7ihj3CCI6ChWIDOTOcfJSQzk=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Meredith Montgomery - Sun, 2 Oct 2022 13:39 UTC

Gisle Vanem <gvanem@yahoo.no> writes:

> Hello list.
>
> I'm moved my old Python27 installation from
> f:\ProgramFiler\Python27 ( == 'ProgramFiles')
> to
> f:\gv\Python27
>
> and now many 'scripts/*.exe' program fails
> to start since the old path to 'Python.exe'
> is wrong.
>
> E.g. 'Scripts/pip2.exe' has the path
> "f:\programfiler\python27\python.exe" hard-coded
> inside it.
>
> Is there a easy way to fix this w/o re-installing this
> old Python?

Wouldn't it be great if it were portable by default?

Re: Changing 'Scripts/*.exe'

<portable-20221002152125@ram.dialup.fu-berlin.de>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: 2 Oct 2022 14:22:30 GMT
Organization: Stefan Ram
Lines: 20
Expires: 1 Sep 2023 11:59:58 GMT
Message-ID: <portable-20221002152125@ram.dialup.fu-berlin.de>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no> <e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no> <mailman.512.1664639421.20444.python-list@python.org> <8635c6bb0b.fsf@levado.to>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de ExaIsAQN8ikyGfDHgs6eQQLOMPSuuo9hzzEVDVfkKkukBg
X-Copyright: (C) Copyright 2022 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE, en-US, it, fr-FR
 by: Stefan Ram - Sun, 2 Oct 2022 14:22 UTC

Meredith Montgomery <mmontgomery@levado.to> writes:
>Wouldn't it be great if it were portable by default?

I think under Windows there is a division of software
suggested by Microsoft, a division of software into
executable code and data (data may change in time).

The executable code is supposed to rest under
"C:\Program Files" the contents of which cannot be
modified by user processes easily. Program configuration
can be stored below "AppData" in the user directory.
It is supposed to be more secure when executable code
cannot be modified easily by user processes.

So far, Python has decided to ignore this and install
everything under AppData as I understand it. So one
gets neither the security of "Program Files" nor the
possibility to move it to another directory easily.

Re: Changing 'Scripts/*.exe'

<tfbjjh1q0a4lmsnd06g8jvum5cmhcd361b@4ax.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.26.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 02 Oct 2022 15:31:58 +0000
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: Sun, 02 Oct 2022 11:31:58 -0400
Organization: IISS Elusive Unicorn
Message-ID: <tfbjjh1q0a4lmsnd06g8jvum5cmhcd361b@4ax.com>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no> <e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no> <mailman.512.1664639421.20444.python-list@python.org> <8635c6bb0b.fsf@levado.to> <portable-20221002152125@ram.dialup.fu-berlin.de>
User-Agent: ForteAgent/8.00.32.1272
X-No-Archive: Yes
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-hH3AuETERxEkvbiU4r+V7lVXG1vQgzWTHNbxZIqrT7QWgSPO2ZgaZgy1HMMJr1hS2hB9wOvwWhD5gNC!JD2SUvBs0BP5MO2UQ7hJ1TMeD1m5vz1D4VEv4ypJxfHkdcA1WHcgvSOM6v88fIoOgysIsFZr
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2287
 by: Dennis Lee Bieber - Sun, 2 Oct 2022 15:31 UTC

On 2 Oct 2022 14:22:30 GMT, ram@zedat.fu-berlin.de (Stefan Ram) declaimed
the following:

> So far, Python has decided to ignore this and install
> everything under AppData as I understand it. So one
> gets neither the security of "Program Files" nor the
> possibility to move it to another directory easily.
>
Only if you install for single user... Install for ALL users MUST put
the executable/libraries into a public location (if still read-only).
Problem with putting Python in C:\Program Files\ is that installing (again
for all users) via pip requires admin privileges.

Much easier (at least with the installers I've used) is to override the
default install location and use something like C:\Pythonx.y\ (x.y being
version info).

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Changing 'Scripts/*.exe'

<86zgeccs27.fsf@levado.to>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!aioe.org!yop09xhwaKy9YXrWd0pu4w.user.46.165.242.91.POSTED!not-for-mail
From: mmontgom...@levado.to (Meredith Montgomery)
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: Mon, 03 Oct 2022 22:10:08 -0300
Organization: Aioe.org NNTP Server
Message-ID: <86zgeccs27.fsf@levado.to>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
<mailman.512.1664639421.20444.python-list@python.org>
<8635c6bb0b.fsf@levado.to>
<portable-20221002152125@ram.dialup.fu-berlin.de>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="3287"; posting-host="yop09xhwaKy9YXrWd0pu4w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
Cancel-Lock: sha1:P4L41YhWq5kbeii3h3GGiVPctyY=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Meredith Montgomery - Tue, 4 Oct 2022 01:10 UTC

ram@zedat.fu-berlin.de (Stefan Ram) writes:

> Meredith Montgomery <mmontgomery@levado.to> writes:
>>Wouldn't it be great if it were portable by default?
>
> I think under Windows there is a division of software
> suggested by Microsoft, a division of software into
> executable code and data (data may change in time).
>
> The executable code is supposed to rest under
> "C:\Program Files" the contents of which cannot be
> modified by user processes easily. Program configuration
> can be stored below "AppData" in the user directory.
> It is supposed to be more secure when executable code
> cannot be modified easily by user processes.
>
> So far, Python has decided to ignore this and install
> everything under AppData as I understand it. So one
> gets neither the security of "Program Files" nor the
> possibility to move it to another directory easily.

Interesting. I like portable things. You copy from one place to
another and it just runs. As it should. Things should be simple.

Re: Changing 'Scripts/*.exe'

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: PythonL...@DancesWithMice.info (dn)
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: Tue, 4 Oct 2022 14:55:36 +1300
Organization: DWM
Lines: 45
Message-ID: <mailman.520.1664848547.20444.python-list@python.org>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
<mailman.512.1664639421.20444.python-list@python.org>
<8635c6bb0b.fsf@levado.to> <portable-20221002152125@ram.dialup.fu-berlin.de>
<86zgeccs27.fsf@levado.to>
<713d801d-9145-2d8c-eed9-db9221997996@DancesWithMice.info>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de +3OXNZayy9ZXF8VwaB9ZTwohlNbxDyxIDWYLCxWXS6dQ==
Return-Path: <PythonList@DancesWithMice.info>
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=danceswithmice.info header.i=@danceswithmice.info
header.b=PbJ9HwzN; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'usage': 0.05; 'simple.':
0.07; '=dn': 0.09; 'from:addr:danceswithmice.info': 0.09;
'from:addr:pythonlist': 0.09; 'linux': 0.09; 'writes:': 0.09;
'directory.': 0.16; 'division': 0.16; 'easily.': 0.16;
'executable': 0.16; 'extending': 0.16; 'far,': 0.16; 'firefox,':
0.16; 'folk': 0.16; 'interesting.': 0.16; 'message-
id:@DancesWithMice.info': 0.16; 'processes.': 0.16;
'received:51.254': 0.16; 'received:51.254.211': 0.16;
'received:51.254.211.219': 0.16; 'received:cloud': 0.16;
'received:rangi.cloud': 0.16; 'resorting': 0.16;
'subject:Scripts': 0.16; 'utilities': 0.16; 'wrote:': 0.16;
'python': 0.16; 'applications': 0.17; 'to:addr:python-list': 0.20;
'install': 0.23; 'code': 0.23; 'installed': 0.23; '(and': 0.25;
'cannot': 0.25; '>>>': 0.28; 'header:User-Agent:1': 0.30;
'header:Organization:1': 0.31; 'program': 0.31; 'think': 0.32;
'(as': 0.32; 'modified': 0.32; "wouldn't": 0.32; 'there': 0.33;
'windows': 0.34; 'header:In-Reply-To:1': 0.34; 'files': 0.36;
'possibly': 0.36; 'processes': 0.36; 'change': 0.36; 'directory':
0.37; 'received:192.168': 0.37; 'neither': 0.39; 'rest': 0.39;
'want': 0.40; 'should': 0.40; 'great': 0.63; 'copy': 0.63;
'everything': 0.63; 'security': 0.64; 'received:51': 0.64; 'well':
0.65; 'decided': 0.67; 'types': 0.67; 'away': 0.67; 'exactly':
0.68; 'etc,': 0.69; 'below': 0.69; 'ignore': 0.71; 'little': 0.73;
'features': 0.75; 'supposed': 0.76; 'meredith': 0.84;
'microsoft,': 0.84; 'time).': 0.84; '"do': 0.91
DKIM-Filter: OpenDKIM Filter v2.11.0 vps.rangi.cloud 67619582A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danceswithmice.info;
s=staff; t=1664848545;
bh=JFA/tKJ+AtH5Eh5DVmX9ay1qYlXpfJOMjZSHQ8WAfGQ=;
h=Date:Subject:To:References:From:In-Reply-To:From;
b=PbJ9HwzN1ZphIew5/IQgn2cp8oCXv12jMG8CIJZYudjqOL4GC3wxANOkCVltWU++z
u95rBUbfs63u+D9b+N7Jds3KLO0JBW0gqmZX0PVqC3Z8B1BH/gBlr2psn6W39xkgkl
+NttVDt33r+a2c8WfiL9aM0fydoR59uYf6iZCVToIGGw5pygrPqIsf3D2137VkhDeh
N+sMdhsLIxIYzEDivt4tU3So398EfkZtxoPkDSSivXwUXqc3l0KgWTXdgvT2BNlCYe
UdVGRnwIO2Zy0YLcCn+h7KWb/PAb7p1k79943BMLj2NIirPpbDtl025fBMBX5C2xgB
shSMQHgsgMEIQ==
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
Content-Language: en-GB
In-Reply-To: <86zgeccs27.fsf@levado.to>
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: <713d801d-9145-2d8c-eed9-db9221997996@DancesWithMice.info>
X-Mailman-Original-References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
<mailman.512.1664639421.20444.python-list@python.org>
<8635c6bb0b.fsf@levado.to> <portable-20221002152125@ram.dialup.fu-berlin.de>
<86zgeccs27.fsf@levado.to>
 by: dn - Tue, 4 Oct 2022 01:55 UTC

On 04/10/2022 14.10, Meredith Montgomery wrote:
> ram@zedat.fu-berlin.de (Stefan Ram) writes:
>
>> Meredith Montgomery <mmontgomery@levado.to> writes:
>>> Wouldn't it be great if it were portable by default?
>>
>> I think under Windows there is a division of software
>> suggested by Microsoft, a division of software into
>> executable code and data (data may change in time).
>>
>> The executable code is supposed to rest under
>> "C:\Program Files" the contents of which cannot be
>> modified by user processes easily. Program configuration
>> can be stored below "AppData" in the user directory.
>> It is supposed to be more secure when executable code
>> cannot be modified easily by user processes.
>>
>> So far, Python has decided to ignore this and install
>> everything under AppData as I understand it. So one
>> gets neither the security of "Program Files" nor the
>> possibility to move it to another directory easily.
>
> Interesting. I like portable things. You copy from one place to

At which point we mention that this is exactly how Linux works. A 'zen'
of Linux applications and utilities has always been: "do one thing, and
do it well".

Then directory/file access controls aim to keep users in 'userland' and
away from 'system', and for folk who want more there are security
features such as apparmor which limit the types of usage of files (as
well as resisting external threats).

Extending this a little further: such philosophy enables Linux users to
more-easily install (and run) multiple versions of Python*, Firefox,
Chromium, etc, without resorting to containers or VMs.

* eg v2 and v3 installed concurrently, to possibly suit OP

> another and it just runs. As it should. Things should be simple.

+1
--
Regards,
=dn

Re: Changing 'Scripts/*.exe'

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: 2QdxY4Rz...@potatochowder.com
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: Tue, 4 Oct 2022 05:49:25 -0400
Lines: 50
Message-ID: <mailman.521.1664878524.20444.python-list@python.org>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
<mailman.512.1664639421.20444.python-list@python.org>
<8635c6bb0b.fsf@levado.to>
<portable-20221002152125@ram.dialup.fu-berlin.de>
<86zgeccs27.fsf@levado.to>
<713d801d-9145-2d8c-eed9-db9221997996@DancesWithMice.info>
<YzwBpSLKqbvLeKIk@anomaly>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.uni-berlin.de trWNaMeT/oo7IOv02egQFgwI0LgdPYq7maE0MVfdrwVA==
Return-Path: <2QdxY4RzWzUUiLuE@potatochowder.com>
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.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; ';-)': 0.07; 'files)':
0.07; 'simple.': 0.07; 'environments': 0.09; 'much,': 0.09;
'received:78': 0.09; 'simplicity': 0.09; 'writes:': 0.09; 'alias':
0.16; 'directory.': 0.16; 'disk,': 0.16; 'division': 0.16;
'easily.': 0.16; 'executable': 0.16; 'far,': 0.16;
'from:addr:2qdxy4rzwzuuilue': 0.16; 'from:addr:potatochowder.com':
0.16; 'interesting.': 0.16; 'network,': 0.16; 'os,': 0.16;
'processes.': 0.16; 'received:136.243': 0.16; 'received:73': 0.16;
'received:78.46': 0.16; 'received:www458.your-server.de': 0.16;
'received:your-server.de': 0.16; 'subject:Scripts': 0.16;
'things,': 0.16; 'wrote:': 0.16; 'python': 0.16; 'to:addr:python-
list': 0.20; 'mac': 0.22; 'version': 0.23; 'install': 0.23;
'code': 0.23; 'lines': 0.23; 'received:de': 0.23; 'cannot': 0.25;
'old': 0.27; '>>>': 0.28; 'program': 0.31; 'think': 0.32;
'modified': 0.32; 'received:136': 0.32; 'simple,': 0.32;
"wouldn't": 0.32; 'but': 0.32; 'there': 0.33; 'windows': 0.34;
"didn't": 0.34; 'mean': 0.34; 'header:In-Reply-To:1': 0.34;
'also,': 0.36; 'processes': 0.36; 'system,': 0.36; 'change': 0.36;
'those': 0.36; 'really': 0.37; 'directory': 0.37; 'file': 0.38;
'way': 0.38; 'could': 0.38; 'neither': 0.39; 'rest': 0.39;
'data.': 0.40; 'should': 0.40; 'great': 0.63; 'copy': 0.63;
'between': 0.63; 'everything': 0.63; 'security': 0.64;
'security.': 0.64; 'decided': 0.67; 'below': 0.69; 'too.': 0.70;
'ignore': 0.71; 'virtual': 0.71; 'supposed': 0.76; 'known': 0.84;
'flat': 0.84; 'meredith': 0.84; 'microsoft,': 0.84; 'time).':
0.84; 'folders': 0.91
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <713d801d-9145-2d8c-eed9-db9221997996@DancesWithMice.info>
X-Authenticated-Sender: 2QdxY4RzWzUUiLuE@potatochowder.com
X-Virus-Scanned: Clear (ClamAV 0.103.7/26679/Tue Oct 4 09:56:50 2022)
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: <YzwBpSLKqbvLeKIk@anomaly>
X-Mailman-Original-References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
<mailman.512.1664639421.20444.python-list@python.org>
<8635c6bb0b.fsf@levado.to>
<portable-20221002152125@ram.dialup.fu-berlin.de>
<86zgeccs27.fsf@levado.to>
<713d801d-9145-2d8c-eed9-db9221997996@DancesWithMice.info>
 by: 2QdxY4Rz...@potatochowder.com - Tue, 4 Oct 2022 09:49 UTC

On 2022-10-04 at 14:55:36 +1300,
dn <PythonList@DancesWithMice.info> wrote:

> On 04/10/2022 14.10, Meredith Montgomery wrote:
> > ram@zedat.fu-berlin.de (Stefan Ram) writes:
> >
> >> Meredith Montgomery <mmontgomery@levado.to> writes:
> >>> Wouldn't it be great if it were portable by default?
> >>
> >> I think under Windows there is a division of software
> >> suggested by Microsoft, a division of software into
> >> executable code and data (data may change in time).
> >>
> >> The executable code is supposed to rest under
> >> "C:\Program Files" the contents of which cannot be
> >> modified by user processes easily. Program configuration
> >> can be stored below "AppData" in the user directory.
> >> It is supposed to be more secure when executable code
> >> cannot be modified easily by user processes.
> >>
> >> So far, Python has decided to ignore this and install
> >> everything under AppData as I understand it. So one
> >> gets neither the security of "Program Files" nor the
> >> possibility to move it to another directory easily.
> >
> > Interesting. I like portable things. You copy from one place to
^
Copy what? That's the crux of it.

On vintage (1980s? 1990s? way before OS X, anyway) Mac OS, I could copy
an alias (Mac's version of a symbolic link) to a floppy disk, walk (IOW,
"transfer via sneaker net") that alias to another Mac on the network,
and open *the original file* from that other Mac. (I could even move
the file to another folder on the original Mac, but that didn't mean
much, because those old file systems were entirely flat (directories and
folders were an illusion maintained by the Finder).)

Permissions? We don't need no stinkin' permissions! ;-)

> > another and it just runs. As it should. Things should be simple.
>
> +1

I like simple, portable things, too. But this kind of simplicity
(applications looking in known locations for certain files) and this
kind of portability (allowing users to move those files) are at oods.
And that's before we consider security.

Also, [almost] by definition, Python virtual environments really blur
the lines between user, system, public, private, programs, and data.

Re: Changing 'Scripts/*.exe'

<jq3qb1F4hmdU1@mid.individual.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!aioe.org!news.mb-net.net!open-news-network.org!news.mind.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: greg.ew...@canterbury.ac.nz (Greg Ewing)
Newsgroups: comp.lang.python
Subject: Re: Changing 'Scripts/*.exe'
Date: Wed, 5 Oct 2022 11:27:45 +1300
Lines: 30
Message-ID: <jq3qb1F4hmdU1@mid.individual.net>
References: <e030c462-62c3-5b88-9b3f-59a030397acd.ref@yahoo.no>
<e030c462-62c3-5b88-9b3f-59a030397acd@yahoo.no>
<mailman.512.1664639421.20444.python-list@python.org>
<8635c6bb0b.fsf@levado.to> <portable-20221002152125@ram.dialup.fu-berlin.de>
<86zgeccs27.fsf@levado.to>
<713d801d-9145-2d8c-eed9-db9221997996@DancesWithMice.info>
<YzwBpSLKqbvLeKIk@anomaly>
<mailman.521.1664878524.20444.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net q7AHwsw2PSEmqyzE0z+Y5QJEI6ewbMyM+ZS0RQDtz1JqcaeW6V
Cancel-Lock: sha1:prnG9bOmwt7kTDqdcvTJdbRfWOM=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:91.0)
Gecko/20100101 Thunderbird/91.3.2
Content-Language: en-US
In-Reply-To: <mailman.521.1664878524.20444.python-list@python.org>
 by: Greg Ewing - Tue, 4 Oct 2022 22:27 UTC

On 4/10/22 10:49 pm, 2QdxY4RzWzUUiLuE@potatochowder.com wrote:
> (I could even move
> the file to another folder on the original Mac, but that didn't mean
> much, because those old file systems were entirely flat (directories and
> folders were an illusion maintained by the Finder)

That was only true in the very early days. A proper hierarchical
file system was available as soon as hard disks became common
(around the Mac II era I think?)

However, internally each file on a volume was identified by a
File ID (something a bit like an inode number) and that was
stored in the alias and used as the first means of finding the
file. There was also a pathname stored in the alias, but that
was only used as a backup in case the file couldn't be found
using the File ID.

So a Mac alias was in some ways more powerful than a
symlink, but in other ways less -- e.g. there was no equivalent
to a relative symlink. Also aliases are more like a Windows
shortcut in that they aren't resolved automatically in the
kernel -- programs need to be aware of them and take explicit
action to resolve them.

Things are even more confusing in MacOSX, which has both
aliases *and* symlinks, they behave differently, and the Finder
doesn't tell you which you're looking at. :-(

--
Greg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor