On 01/12/2022 22:20, Libor Ukropec wrote:
Hello,

I have question to cygclass python-wheel. It seems that setup.py is being omited in some python packages (here I faced it in the python-fasteners) and as described here: https://setuptools.pypa.io/en/latest/setuptools.html , chapter "setup.cfg-only projects"

> If setup.py is missing from the project directory when a PEP 517 build is invoked, > setuptools emulates a dummy setup.py file containing only a setuptools.setup() call.

Currently the cyglass requires the setup.py being present, otherwise it throws error "No Python Distutils module detected"

IMHO would be nice if the cygclass handle this case. Or should I create a patch that inserts empty setup.py module instead?

Yeah, it seems this is definitely something that needs updating in cygport, so thanks for pointing that out.

It's fairly straightforward to drop the check at [1], or perhaps it's more appropriate to change it to check for either setup.py or setup.cfg?

But then we want to run 'python -msetuptools.launch setup.py bdist_wheel' to build the wheel.

In a very quick bit of research, it' seems the modern equivalent would be something like 'python -m build --wheel', but we don't seem to have a python-build package?

I'm not very familiar with the evolving state of python packaging, so I think I may need a bit of help getting this right!

[1] https://cygwin.com/git/?p=cygwin-apps/cygport.git;a=blob;f=cygclass/python-wheel.cygclass;h=b6ed68b4acda83ada549f898b9ebd611d8a4506f;hb=HEAD#l158

Reply via email to