ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
340 stars 36 forks source link

No module named py2app.__main__; 'py2app' is a package and cannot be directly executed #500

Open AdamVenn opened 1 year ago

AdamVenn commented 1 year ago

Thank you for all your work on this project.

Is pyproject.toml support currently working? I was doing a test, looking to move from setup.py.

I followed the instructions in the docs - the pages 'Invoking py2app' and 'Py2app Configuration' - but when I call python -m py2app, I get the error No module named py2app.__main__; 'py2app' is a package and cannot be directly executed. I checked the tar.gz on PyPi and indeed there is none. Am I doing something wrong?

MorningLightMountain713 commented 1 year ago

Same

ronaldoussoren commented 1 year ago

Oops. I didn't pay enough attention when pushing recent work to GitHub, which has resulted in documentation on readthedocs that describes a future situation.

For now only the "legacy setuptools workflow" is supported (https://py2app.readthedocs.io/en/latest/command-line.html#legacy-setuptools-interface), and py2app does not yet support using pyproject.toml.

The master branch in GitHub does contain support for the new interface, but is not yet useable (as in, the new code cannot yet build a working application bundle). I'm still hoping to get the new code base out before the end of the year.

AdamVenn commented 1 year ago

Aha, okay. I'll be looking forward to the new interface and will be happy to contribute an example if it will be useful.

sebastianhaberey commented 7 months ago

Also looking forwward to the new workflow since I quite like py2app :)