Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are the .exe files in Scripts folder for python generated?

I noticed that in Scripts folder inside the python installation folder there are executable files. Each file about a 100kb in size.

FYI: when I open it (or them) using 7Zip I often find a init.py file inside.

like image 893
Omega Msiska Avatar asked Oct 22 '25 04:10

Omega Msiska


1 Answers

The setuptools package builder is able to

Automatically generate wrapper scripts or Windows (console and GUI) .exe files for any number of “main” functions in your project. (Note: this is not a py2exe replacement; the .exe files rely on the local Python installation.)

(ref. from setuptools documentation)

Unfortunately the way it is actually done is considered an implementation detail and is not documented.

like image 124
Serge Ballesta Avatar answered Oct 24 '25 08:10

Serge Ballesta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!