tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Warning on running setup.py

Open jeromekelleher opened this issue 5 months ago • 4 comments

 WARNING  pyproject.toml does not contain a tool.setuptools_scm section  

we probably need modernise the pyproject.toml a bit?

jeromekelleher avatar Jun 25 '25 13:06 jeromekelleher

For my projects, getting rid of setup.py in favor of setup.cfg/pyproject.toml seems to have saved a lot of headaches.

molpopgen avatar Jun 26 '25 20:06 molpopgen

I don't think tskit can remove the setup.py as we have dynamic logic for platform-specific build rules.

benjeffery avatar Jun 30 '25 15:06 benjeffery

I can't recreate this - what setup.py command were you running?

benjeffery avatar Jun 30 '25 15:06 benjeffery

I just took a look and I'm pretty sure that all of the platform specific stuff can be done using declarative syntax. It has been a while since I've dealt with Extension, but you can do some pretty complex stuff with build backends and no setup.py.

molpopgen avatar Jun 30 '25 16:06 molpopgen