Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Catch a wave and you're sitting on top of the world." -- The Beach Boys


devel / comp.lang.python / Re: About Python Compressed Archive or Binaries

SubjectAuthor
o Re: About Python Compressed Archive or BinariesKirill Ratkin

1
Re: About Python Compressed Archive or Binaries

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

  copy mid

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

  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: About Python Compressed Archive or Binaries
Date: Mon, 17 Jan 2022 20:49:44 +0300
Lines: 35
Message-ID: <mailman.206.1642441794.3079.python-list@python.org>
References: <AS8PR06MB7592DE921AD954FD71909931AD579@AS8PR06MB7592.eurprd06.prod.outlook.com>
<dfdb9924-ae2c-c62a-8902-585adc9ab571@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 07/N0hSiqxcQxOUVQjJzkQkcBM8IFrFSH5uL9DibDqvQ==
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=oplGJhbf;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.006
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '(for': 0.05; 'binaries':
0.09; 'compressed': 0.09; 'installer': 0.09; 'linux': 0.09;
'subject:Python': 0.12; 'c++': 0.16; 'executable': 0.16;
'interpreter': 0.16; 'issue?': 0.16; 'modifies': 0.16; 'node':
0.16; 'option.': 0.16; 'procedure': 0.16; 'received:(client
certificate not present)': 0.16; 'stdlib': 0.16; 'wrote:': 0.16;
'python': 0.16; 'it?': 0.19; 'to:addr:python-list': 0.20;
'option': 0.20; 'downloading': 0.22; 'zip': 0.26; 'example,':
0.28; 'environment': 0.29; 'header:User-Agent:1': 0.30; 'think':
0.32; 'question': 0.32; 'users.': 0.32; 'but': 0.32; "i'm": 0.33;
'path': 0.33; 'windows': 0.34; 'same': 0.34; 'header:In-Reply-
To:1': 0.34; 'yes,': 0.35; 'fix': 0.36; "it's": 0.37; 'directory':
0.37; 'file': 0.38; 'put': 0.38; 'use': 0.39; 'wants': 0.40;
'both': 0.40; 'something': 0.40; 'simply': 0.63; 'copy': 0.63;
'offering': 0.64; 'pack': 0.64; 'subject:About': 0.64; 'box':
0.65; 'technical': 0.67; 'received:37': 0.78; 'political': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1642441785; bh=I7NazqHi+3PZVAeSjeMQNPMknujrAcJ9SoaEwaVk8fM=;
h=In-Reply-To:From:Subject:References:Date:Message-ID:To;
b=oplGJhbfuKhJKihmYW14jBJ4QoJGjL4l3ff4Tn5V/fuhmhiICfl4zvJ7sws7gxd6b
RPvWW38nNamHJq/nMncvHWjSDdqVg6qC7wCFN4FgJCHR/Zqx7i/n1uH/2qzP5W9I29
pgTnKILefYfqFdLyZ7RSUBHE/yV6aPPWzSdlwXTs=
Authentication-Results: vla1-38e2a3439e30.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
X-Yandex-Fwd: 2
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: en-US
In-Reply-To: <AS8PR06MB7592DE921AD954FD71909931AD579@AS8PR06MB7592.eurprd06.prod.outlook.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: <dfdb9924-ae2c-c62a-8902-585adc9ab571@yandex.ru>
X-Mailman-Original-References: <AS8PR06MB7592DE921AD954FD71909931AD579@AS8PR06MB7592.eurprd06.prod.outlook.com>
 by: Kirill Ratkin - Mon, 17 Jan 2022 17:49 UTC

Hi,

Yes, this is good question for Windows users.

Of course, you can download installer exe-file -> do installation ->
pack directory with python interpreter to zip (for example, or 7z) ->
copy archive file to another place/computer and unpack.

But it will not work out of box because original installer modifies
resources in MZ file and path to stdlib is there.

So just to use interpreter from that archive file you need to open
python.exe file and fix it (in any binary/hex editor).

This simple procedure but ... anyway ... I agree with Sina.

It would be nice to have just zip file with python interpreter (not
executable installer), unpack it anywhere, add path  to this 'anywhere'
to PATH, and use it.

Java/DotNet/Go have this option. But python - not.

And question is - why?

On 1/17/22 18:37, Sina Mobasheri wrote:
> Java offers download JDK as Compressed Archive or NodeJS offers download Node as Binaries both give us a compressed file for Linux and windows that we can just unzipped it and put in a custom directory and set some environment variables and start working
>
>
> I'm aware that Python also have something called Embedded Zip for Windows and nothing like that for Linux as far as I know, and I think this Embedded Zip is not something that the user wants to work with that directly it's for embedding in a C++ application, so it's not the same as options that Java and NodeJS offering
>
>
> My question is why is Python haven't an option for downloading as Compressed Archive?
> Is it's due to a technical issue? political reasons? or is it just simply because nobody has thought of doing it?
>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor