How to create Python egg file

前端 未结 3 939
迷失自我
迷失自我 2020-11-29 16:08

I have questions about egg files in Python.

I have much Python code organized by package and I\'m trying to create egg files. I\'m following instructions, but they a

3条回答
  •  既然无缘
    2020-11-29 16:48

    You are reading the wrong documentation. You want this: https://setuptools.readthedocs.io/en/latest/setuptools.html#develop-deploy-the-project-source-in-development-mode

    1. Creating setup.py is covered in the distutils documentation in Python's standard library documentation here. The main difference (for python eggs) is you import setup from setuptools, not distutils.

    2. Yep. That should be right.

    3. I don't think so. pyc files can be version and platform dependent. You might be able to open the egg (they should just be zip files) and delete .py files leaving .pyc files, but it wouldn't be recommended.

    4. I'm not sure. That might be “Development Mode”. Or are you looking for some “py2exe” or “py2app” mode?

提交回复
热议问题