I installed a python package My-App with python setup.py install and an egg directory My_App-0.2a40-py3.9-linux-x86_64.egg is created under my site-packages.
I looked up setuptools docs and source code and some PEPs trying to figure out how the egg dir name My_App-0.2a40-py3.9-linux-x86_64.egg is generated, but I didn't find anything relavent.
So how is the python egg dir name like My_App-0.2a40-py3.9-linux-x86_64.egg generated?
- How does
My-Apppackage name in thesetup.pyget converted toMy_Appin the dir name? py3.9-linux-x86_64looks like a platform tag, but not exactly - it doesn't containcp39etc. I want to know how this is generated.
The doc https://setuptools.pypa.io/en/latest/deprecated/python_eggs.html points out the functions used to construct the egg dir name.