Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an icon to an entry_points for Python pip generated executable

I'd like to add an icon to the executable wrapper generated by setuptools, e.g. when installing via pip install. If this is possible, how do I add my .ico to setup.py? If this is not possible to do directly with pip I just need confirmation. I know there are options for generating an executable with Python.

My setup.py is along the lines of

from setuptools import setup

setup(name='myapp',
    ...,
    entry_points={
        gui_scripts: ['myapp=myapp.start:gui']
        }
    )
like image 952
tharen Avatar asked Feb 15 '26 11:02

tharen


1 Answers

It is not possible.

Still, for windows apps, if you embed the icon in the executable it will be used by the system. Obviously this works if your package contains those executables already compiled.

like image 177
sorin Avatar answered Feb 17 '26 01:02

sorin



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!