Mailing List Archive

Why There Is No Python Compressed Archive or Binaries ?
Java offers download JDK as Compressed Archive<https://www.oracle.com/java/technologies/downloads/#jdk17-linux> or NodeJS offers download Node as Binaries<https://nodejs.org/en/download/current/> 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<https://www.python.org/ftp/python/3.10.1/python-3.10.1-embed-amd64.zip> for Windows and nothing like that for Linux as far as I know, and I think this Embedded Zip is not something that 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 offers

My question is why Python hasn't option for downloading as Compressed Archive ?
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
On 2022-01-17, Sina Mobasheri <sinamobasheri@outlook.com> wrote:
> Java offers download JDK...
> [...]
> My question is why Python hasn't option for downloading as
> Compressed Archive ?

Isn't that what the installers are?

--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
On Mon, 17 Jan 2022 08:07:07 -0800 (PST), Grant Edwards
<grant.b.edwards@gmail.com> declaimed the following:

>On 2022-01-17, Sina Mobasheri <sinamobasheri@outlook.com> wrote:
>> Java offers download JDK...
>> [...]
>> My question is why Python hasn't option for downloading as
>> Compressed Archive ?
>
>Isn't that what the installers are?

I get the impression they are looking for a zero-install option... IE:
unpack onto a USB flash drive, take to another computer, and just be able
to run from the flash drive without needing to fiddle with PATH, registry,
etc. A way to run Python on shared (library) computers that may not have it
installed, and for which users have no ability to install applications.


--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
On 2022-01-17, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
> On Mon, 17 Jan 2022 08:07:07 -0800 (PST), Grant Edwards
><grant.b.edwards@gmail.com> declaimed the following:
>
>>On 2022-01-17, Sina Mobasheri <sinamobasheri@outlook.com> wrote:
>>> Java offers download JDK...
>>> [...]
>>> My question is why Python hasn't option for downloading as
>>> Compressed Archive ?
>>
>>Isn't that what the installers are?
>
> I get the impression they are looking for a zero-install option... IE:
> unpack onto a USB flash drive, take to another computer, and just be able
> to run from the flash drive without needing to fiddle with PATH, registry,
> etc.

OK, I see.

> A way to run Python on shared (library) computers that may not have it
> installed, and for which users have no ability to install applications.

I guess I don't know enough about Windows to comment. I've packaged
apps for Windows that include the Python interpreter and libs, but
they still need to be "installed".

--
Grant


--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
I maintain a small project that provides this, a drop-in Python runtime you
can ship without installation called Feet. Get it? It makes Python run.

https://github.com/ironfroggy/feet

On Mon, Jan 17, 2022 at 11:16 AM Sina Mobasheri <sinamobasheri@outlook.com>
wrote:

> Java offers download JDK as Compressed Archive<
> https://www.oracle.com/java/technologies/downloads/#jdk17-linux> or
> NodeJS offers download Node as Binaries<
> https://nodejs.org/en/download/current/> 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<
> https://www.python.org/ftp/python/3.10.1/python-3.10.1-embed-amd64.zip>
> for Windows and nothing like that for Linux as far as I know, and I think
> this Embedded Zip is not something that 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 offers
>
> My question is why Python hasn't option for downloading as Compressed
> Archive ?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>

--

CALVIN SPEALMAN

SENIOR QUALITY ENGINEER

calvin.spealman@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
It's cool project definitely something that I'm personally interested about, but I talking about compressed archive of cpython that we can simply unzipped and starting developing an app, not running an app that already developed... ????
________________________________
From: Calvin Spealman <cspealma@redhat.com>
Sent: Monday, January 17, 2022 10:19:13 PM
To: Sina Mobasheri <sinamobasheri@outlook.com>
Cc: python-list@python.org <python-list@python.org>
Subject: Re: Why There Is No Python Compressed Archive or Binaries ?

I maintain a small project that provides this, a drop-in Python runtime you can ship without installation called Feet. Get it? It makes Python run.

https://github.com/ironfroggy/feet

On Mon, Jan 17, 2022 at 11:16 AM Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>> wrote:
Java offers download JDK as Compressed Archive<https://www.oracle.com/java/technologies/downloads/#jdk17-linux> or NodeJS offers download Node as Binaries<https://nodejs.org/en/download/current/> 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<https://www.python.org/ftp/python/3.10.1/python-3.10.1-embed-amd64.zip> for Windows and nothing like that for Linux as far as I know, and I think this Embedded Zip is not something that 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 offers

My question is why Python hasn't option for downloading as Compressed Archive ?
--
https://mail.python.org/mailman/listinfo/python-list



--

CALVIN SPEALMAN

SENIOR QUALITY ENGINEER

calvin.spealman@redhat.com<mailto:calvin.spealman@redhat.com> M: +1.336.210.5107<tel:+1.336.210.5107>

[https://red.ht/sig]<https://red.ht/sig>
TRIED. TESTED. TRUSTED.<https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
Well, on its own, I'd say the reason we don't have such a download is that
it wouldn't be very useful.

On Mon, Jan 17, 2022 at 2:08 PM Sina Mobasheri <sinamobasheri@outlook.com>
wrote:

> It's cool project definitely something that I'm personally interested
> about, but I talking about compressed archive of cpython that we can simply
> unzipped and starting developing an app, not running an app that already
> developed... ????
> ------------------------------
> *From:* Calvin Spealman <cspealma@redhat.com>
> *Sent:* Monday, January 17, 2022 10:19:13 PM
> *To:* Sina Mobasheri <sinamobasheri@outlook.com>
> *Cc:* python-list@python.org <python-list@python.org>
> *Subject:* Re: Why There Is No Python Compressed Archive or Binaries ?
>
> I maintain a small project that provides this, a drop-in Python runtime
> you can ship without installation called Feet. Get it? It makes Python run.
>
> https://github.com/ironfroggy/feet
>
> On Mon, Jan 17, 2022 at 11:16 AM Sina Mobasheri <sinamobasheri@outlook.com>
> wrote:
>
> Java offers download JDK as Compressed Archive<
> https://www.oracle.com/java/technologies/downloads/#jdk17-linux> or
> NodeJS offers download Node as Binaries<
> https://nodejs.org/en/download/current/> 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<
> https://www.python.org/ftp/python/3.10.1/python-3.10.1-embed-amd64.zip>
> for Windows and nothing like that for Linux as far as I know, and I think
> this Embedded Zip is not something that 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 offers
>
> My question is why Python hasn't option for downloading as Compressed
> Archive ?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
>
> --
>
> CALVIN SPEALMAN
>
> SENIOR QUALITY ENGINEER
>
> calvin.spealman@redhat.com M: +1.336.210.5107
> [image: https://red.ht/sig] <https://red.ht/sig>
> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
>


--

CALVIN SPEALMAN

SENIOR QUALITY ENGINEER

calvin.spealman@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
Consider scenario that I want run python 3.10 in CentOS 8, I think last python version in CentOS repository is 3.6, if I use epel I can get 3.8 so ..., I think (correct me if I'm wrong ????????) the only way that I can run python 3.10 is to compile it manually, which is need to know what dependencies python needs for compilation ... (different distribution different packages, which packages for what, you can see that it is intimidating for beginners like me)
It's useful to just use wget <python.org/ftp/python/3.10.1/compressed. tar.xz>, unzipped, ser path and ta-da you have cpython 3.10 in CentOS 8

This is Linux specific use case that I can think of, I'm sure there are plenty for windows, consider scenario that I wrote script for scraping some site and entered in some excel worksheet I can simply ship cpython with my script to clients machine and there is no need that client install cpython by himself...

Sorry about my bad grammar
________________________________
From: Calvin Spealman <cspealma@redhat.com>
Sent: Monday, January 17, 2022, 22:53
To: Sina Mobasheri
Cc: python-list@python.org
Subject: Re: Why There Is No Python Compressed Archive or Binaries ?

Well, on its own, I'd say the reason we don't have such a download is that it wouldn't be very useful.

On Mon, Jan 17, 2022 at 2:08 PM Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>> wrote:
It's cool project definitely something that I'm personally interested about, but I talking about compressed archive of cpython that we can simply unzipped and starting developing an app, not running an app that already developed... ????
________________________________
From: Calvin Spealman <cspealma@redhat.com<mailto:cspealma@redhat.com>>
Sent: Monday, January 17, 2022 10:19:13 PM
To: Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>>
Cc: python-list@python.org<mailto:python-list@python.org> <python-list@python.org<mailto:python-list@python.org>>
Subject: Re: Why There Is No Python Compressed Archive or Binaries ?

I maintain a small project that provides this, a drop-in Python runtime you can ship without installation called Feet. Get it? It makes Python run.

https://github.com/ironfroggy/feet

On Mon, Jan 17, 2022 at 11:16 AM Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>> wrote:
Java offers download JDK as Compressed Archive<https://www.oracle.com/java/technologies/downloads/#jdk17-linux> or NodeJS offers download Node as Binaries<https://nodejs.org/en/download/current/> 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<https://www.python.org/ftp/python/3.10.1/python-3.10.1-embed-amd64.zip> for Windows and nothing like that for Linux as far as I know, and I think this Embedded Zip is not something that 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 offers

My question is why Python hasn't option for downloading as Compressed Archive ?
--
https://mail.python.org/mailman/listinfo/python-list



--

CALVIN SPEALMAN

SENIOR QUALITY ENGINEER

calvin.spealman@redhat.com<mailto:calvin.spealman@redhat.com> M: +1.336.210.5107<tel:+1.336.210.5107>

[https://red.ht/sig]<https://red.ht/sig>
TRIED. TESTED. TRUSTED.<https://redhat.com/trusted>


--

CALVIN SPEALMAN

SENIOR QUALITY ENGINEER

calvin.spealman@redhat.com<mailto:calvin.spealman@redhat.com> M: +1.336.210.5107<tel:+1.336.210.5107>

[https://red.ht/sig]<https://red.ht/sig>
TRIED. TESTED. TRUSTED.<https://redhat.com/trusted>

--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
You could try miniconda.

Op 17/01/2022 om 20:53 schreef Sina Mobasheri:
> Consider scenario that I want run python 3.10 in CentOS 8, I think last python version in CentOS repository is 3.6, if I use epel I can get 3.8 so ..., I think (correct me if I'm wrong ????????) the only way that I can run python 3.10 is to compile it manually, which is need to know what dependencies python needs for compilation ... (different distribution different packages, which packages for what, you can see that it is intimidating for beginners like me)
> It's useful to just use wget <python.org/ftp/python/3.10.1/compressed. tar.xz>, unzipped, ser path and ta-da you have cpython 3.10 in CentOS 8
>
> This is Linux specific use case that I can think of, I'm sure there are plenty for windows, consider scenario that I wrote script for scraping some site and entered in some excel worksheet I can simply ship cpython with my script to clients machine and there is no need that client install cpython by himself...
>
> Sorry about my bad grammar
> ________________________________
> From: Calvin Spealman <cspealma@redhat.com>
> Sent: Monday, January 17, 2022, 22:53
> To: Sina Mobasheri
> Cc: python-list@python.org
> Subject: Re: Why There Is No Python Compressed Archive or Binaries ?
>
> Well, on its own, I'd say the reason we don't have such a download is that it wouldn't be very useful.
>
> On Mon, Jan 17, 2022 at 2:08 PM Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>> wrote:
> It's cool project definitely something that I'm personally interested about, but I talking about compressed archive of cpython that we can simply unzipped and starting developing an app, not running an app that already developed... ????
> ________________________________
> From: Calvin Spealman <cspealma@redhat.com<mailto:cspealma@redhat.com>>
> Sent: Monday, January 17, 2022 10:19:13 PM
> To: Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>>
> Cc: python-list@python.org<mailto:python-list@python.org> <python-list@python.org<mailto:python-list@python.org>>
> Subject: Re: Why There Is No Python Compressed Archive or Binaries ?
>
> I maintain a small project that provides this, a drop-in Python runtime you can ship without installation called Feet. Get it? It makes Python run.
>
> https://github.com/ironfroggy/feet
>
> On Mon, Jan 17, 2022 at 11:16 AM Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>> wrote:
> Java offers download JDK as Compressed Archive<https://www.oracle.com/java/technologies/downloads/#jdk17-linux> or NodeJS offers download Node as Binaries<https://nodejs.org/en/download/current/> 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<https://www.python.org/ftp/python/3.10.1/python-3.10.1-embed-amd64.zip> for Windows and nothing like that for Linux as far as I know, and I think this Embedded Zip is not something that 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 offers
>
> My question is why Python hasn't option for downloading as Compressed Archive ?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
>
> --
>
> CALVIN SPEALMAN
>
> SENIOR QUALITY ENGINEER
>
> calvin.spealman@redhat.com<mailto:calvin.spealman@redhat.com> M: +1.336.210.5107<tel:+1.336.210.5107>
>
> [https://red.ht/sig]<https://red.ht/sig>
> TRIED. TESTED. TRUSTED.<https://redhat.com/trusted>
>
>
> --
>
> CALVIN SPEALMAN
>
> SENIOR QUALITY ENGINEER
>
> calvin.spealman@redhat.com<mailto:calvin.spealman@redhat.com> M: +1.336.210.5107<tel:+1.336.210.5107>
>
> [https://red.ht/sig]<https://red.ht/sig>
> TRIED. TESTED. TRUSTED.<https://redhat.com/trusted>
>

--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
Yes? sure, actually I can continue working and developing with python without this feature no problem but it's something that I like and I'm just curious about it, about why Python doesn't implement this kind of installation (most languages do, Java, NodeJS, Deno, PHP, Go, DotNet) is it because some limitations (technically or politically) or maybe in future they would do that... ?

________________________________
From: Python-list <python-list-bounces+sinamobasheri=outlook.com@python.org> on behalf of Antoon Pardon <antoon.pardon@vub.be>
Sent: Monday, January 17, 2022, 23:51
To: python-list@python.org
Subject: Re: Why There Is No Python Compressed Archive or Binaries ?

You could try miniconda.

Op 17/01/2022 om 20:53 schreef Sina Mobasheri:
> Consider scenario that I want run python 3.10 in CentOS 8, I think last python version in CentOS repository is 3.6, if I use epel I can get 3.8 so ..., I think (correct me if I'm wrong ????????) the only way that I can run python 3.10 is to compile it manually, which is need to know what dependencies python needs for compilation ... (different distribution different packages, which packages for what, you can see that it is intimidating for beginners like me)
> It's useful to just use wget <python.org/ftp/python/3.10.1/compressed. tar.xz>, unzipped, ser path and ta-da you have cpython 3.10 in CentOS 8
>
> This is Linux specific use case that I can think of, I'm sure there are plenty for windows, consider scenario that I wrote script for scraping some site and entered in some excel worksheet I can simply ship cpython with my script to clients machine and there is no need that client install cpython by himself...
>
> Sorry about my bad grammar
> ________________________________
> From: Calvin Spealman <cspealma@redhat.com>
> Sent: Monday, January 17, 2022, 22:53
> To: Sina Mobasheri
> Cc: python-list@python.org
> Subject: Re: Why There Is No Python Compressed Archive or Binaries ?
>
> Well, on its own, I'd say the reason we don't have such a download is that it wouldn't be very useful.
>
> On Mon, Jan 17, 2022 at 2:08 PM Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>> wrote:
> It's cool project definitely something that I'm personally interested about, but I talking about compressed archive of cpython that we can simply unzipped and starting developing an app, not running an app that already developed... ????
> ________________________________
> From: Calvin Spealman <cspealma@redhat.com<mailto:cspealma@redhat.com>>
> Sent: Monday, January 17, 2022 10:19:13 PM
> To: Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>>
> Cc: python-list@python.org<mailto:python-list@python.org> <python-list@python.org<mailto:python-list@python.org>>
> Subject: Re: Why There Is No Python Compressed Archive or Binaries ?
>
> I maintain a small project that provides this, a drop-in Python runtime you can ship without installation called Feet. Get it? It makes Python run.
>
> https://github.com/ironfroggy/feet
>
> On Mon, Jan 17, 2022 at 11:16 AM Sina Mobasheri <sinamobasheri@outlook.com<mailto:sinamobasheri@outlook.com>> wrote:
> Java offers download JDK as Compressed Archive<https://www.oracle.com/java/technologies/downloads/#jdk17-linux> or NodeJS offers download Node as Binaries<https://nodejs.org/en/download/current/> 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<https://www.python.org/ftp/python/3.10.1/python-3.10.1-embed-amd64.zip> for Windows and nothing like that for Linux as far as I know, and I think this Embedded Zip is not something that 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 offers
>
> My question is why Python hasn't option for downloading as Compressed Archive ?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
>
> --
>
> CALVIN SPEALMAN
>
> SENIOR QUALITY ENGINEER
>
> calvin.spealman@redhat.com<mailto:calvin.spealman@redhat.com> M: +1.336.210.5107<tel:+1.336.210.5107>
>
> [https://red.ht/sig]<https://red.ht/sig>
> TRIED. TESTED. TRUSTED.<https://redhat.com/trusted>
>
>
> --
>
> CALVIN SPEALMAN
>
> SENIOR QUALITY ENGINEER
>
> calvin.spealman@redhat.com<mailto:calvin.spealman@redhat.com> M: +1.336.210.5107<tel:+1.336.210.5107>
>
> [https://red.ht/sig]<https://red.ht/sig>
> TRIED. TESTED. TRUSTED.<https://redhat.com/trusted>
>

--
https://mail.python.org/mailman/listinfo/python-list

--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
> On 17 Jan 2022, at 19:53, Sina Mobasheri <sinamobasheri@outlook.com> wrote:
>
> Consider scenario that I want run python 3.10 in CentOS 8, I think last python version in CentOS repository is 3.6, if I use epel I can get 3.8 so ..., I think (correct me if I'm wrong ????????) the only way that I can run python 3.10 is to compile it manually, which is need to know what dependencies python needs for compilation ... (different distribution different packages, which packages for what, you can see that it is intimidating for beginners like me)
> It's useful to just use wget <python.org/ftp/python/3.10.1/compressed. tar.xz>, unzipped, ser path and ta-da you have cpython 3.10 in CentOS 8

Are there features in python 3.10 that are missing from 3.6 that you need?
If not then the easy thing to do is use 3.6.

You could build a docker containers you based on fedora 35 that has the python 3.10
and the python libs that you need installed and use that.

You would use podman and its tools to build and run the container on Centos 8.

For my work I'm planning to use 3.6 on Centos 8 as that is one thing I can avoid packaging
and maintaining myself.

Barry

--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
On 2022-01-17, Sina Mobasheri <sinamobasheri@outlook.com> wrote:

> Yes sure, actually I can continue working and developing with python
> without this feature no problem but it's something that I like and
> I'm just curious about it, about why Python doesn't implement this
> kind of installation

You talk about "Python" implementing something. Python is a language.

If what you want hasn't been implmented, it's because there haven't
been any _people_ who have wanted it enough to do it. I spent 90
seconds googling and found that what you wanted has been implemented a
couple times for Windows. There was "Portable Python," which appears
to have been abandonded.

There's also WinPython <http://winpython.github.io/> which seems to be
active. AFAICT, you just unzip it and run it (nothing needs to be
"installed"). It says you can even move that directory to another
machine and run it there if you want.

Both of those were for Windows.

It's probably never been done for Linux because Linux distros pretty
much all come with Python already installed by default, and it's
usually trivial to install alternative versions as well (and keep them
all updated) via whatever package manager the Distro uses.

--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
Hi Grant

Hmmm...  definitly you are right in particular solution.

But Ok, let me show example.


I often use Go in parallel with Python and sometimes I switch between
Windows/Linux also. On both systems I just download Go toolset as
tarball/zip file and unpack in place where I like.

The point here is Go toolset officially distributed as tarball/zip for
all supported operating system. This is not PortableGo or WinGo or some
anther third party Go distribution. This is one of supported way do get
Go toolset.

On Windows I put toolset on separate drive 'D:\Go' and on linux -
$HOME/.local/go

And I set up several environment variables (doing 'setx' on Windows and
edit .profile on linux): GOPATH, GOROOT, GOCACHE, ... and modify my PATH.

Now I can build any Go project. I don't care about which Go compiler was
set on OS (Linux or Windows) before. I just unpack tarball/zip in place
where I have permissions and use it.


I take Go just for example. In same way you can unpack and use Java SDK
and DotNet SDK. All these toolsets have option (provided by vendor) to
be downloaded as compressed file.


You are absolutely right. It's easy to google and find something like
winpython. But I'm sure there are reasons why www.python.org doesn't
provide this.


On 1/18/22 00:13, Grant Edwards wrote:
> On 2022-01-17, Sina Mobasheri <sinamobasheri@outlook.com> wrote:
>
>> Yes sure, actually I can continue working and developing with python
>> without this feature no problem but it's something that I like and
>> I'm just curious about it, about why Python doesn't implement this
>> kind of installation
> You talk about "Python" implementing something. Python is a language.
>
> If what you want hasn't been implmented, it's because there haven't
> been any _people_ who have wanted it enough to do it. I spent 90
> seconds googling and found that what you wanted has been implemented a
> couple times for Windows. There was "Portable Python," which appears
> to have been abandonded.
>
> There's also WinPython <http://winpython.github.io/> which seems to be
> active. AFAICT, you just unzip it and run it (nothing needs to be
> "installed"). It says you can even move that directory to another
> machine and run it there if you want.
>
> Both of those were for Windows.
>
> It's probably never been done for Linux because Linux distros pretty
> much all come with Python already installed by default, and it's
> usually trivial to install alternative versions as well (and keep them
> all updated) via whatever package manager the Distro uses.
>
> --
> Grant
--
https://mail.python.org/mailman/listinfo/python-list
Re: Why There Is No Python Compressed Archive or Binaries ? [ In reply to ]
On 1/17/22 23:31, Kirill Ratkin wrote:
> Hi Grant
>
> Hmmm...  definitly you are right in particular solution.
>
> But Ok, let me show example.
>
>
> I often use Go in parallel with Python and sometimes I switch between
> Windows/Linux also. On both systems I just download Go toolset as
> tarball/zip file and unpack in place where I like.
>
> The point here is Go toolset officially distributed as tarball/zip for
> all supported operating system. This is not PortableGo or WinGo or some
> anther third party Go distribution. This is one of supported way do get
> Go toolset.
>
> On Windows I put toolset on separate drive 'D:\Go' and on linux -
> $HOME/.local/go
>
> And I set up several environment variables (doing 'setx' on Windows and
> edit .profile on linux): GOPATH, GOROOT, GOCACHE, ... and modify my PATH.
>
> Now I can build any Go project. I don't care about which Go compiler was
> set on OS (Linux or Windows) before. I just unpack tarball/zip in place
> where I have permissions and use it.


The part of this that is Set up Environment Variables and PATH can be
handled by Python's virtualenvs. You create one starting from a
possibly local Python layout, or from a system one, and the virtualenv
handles all the "fiddling" so while that env is active, just "python"
and "pip" work for that environment.

A nice way to manage this is through a project called pyenv. There is
now a Windows port of this so it can work there as well (I've never used
it on WIndows, personally).

So while there may not currently be a zip/tar archive you can unpack and
go, I can get started quite easily on a new version. Let's say I
decidded I needed to test something on Python 3.7 but my main Python is
already 3.10:

pyenv install -l | grep "3\.7"
... list of available versions that contain 3.7

pyenv install 3.7.12 # sets up 3.7.12 in pyenv's local versions tree
pyenv virtualenv 3.7.12 venv-3712 # create virtualenv using 3.7.12 as base
pyenv activate venv-3712

and now I'm running inside a virtualenv using 3.7.12, which I can now
provision for the work I want to do...

--
https://mail.python.org/mailman/listinfo/python-list