3 ms·
All of those setup options are now setup.cfg options: https://docs.python.org/3/distutils/configfile.html https://docs.python.org/3/distutils/configfile.html
by pdonis 7y ago
All of those setup options are now setup.cfg options:
https://docs.python.org/3/distutils/configfile.html https://docs.python.org/3/distutils/configfile.html
At least, that's supposed to be the case; I am not 100% certain that it always is. However, even so, AFAIK setup.cfg does not directly support using third-party libraries to compute the setup options, as your setup.py does. The only workaround I'm aware of for that if you want to get rid of setup.py is to have a separate script that generates setup.cfg using whatever libraries you need. However, I don't think that's the vision of the Python developers.
- hprotagonist 7y agoI get the idea -- but, how do I tell Cython "it's time to compile things now" from a file I can't execute?
- pdonis 7y ago> how do I tell Cython "it's time to compile things now" from a file I can't execute? It looks like there are ways to specify which build tools your package requires; I would assume Cython would be one of the tools that can be specified since it's been around a while and gets a lot of usage, but I don't know for sure.
- kevin_thibedeau 7y agoThere are lot that of options that setup.cfg doesn't support. "use_2to3" is one.
- takeda 7y agoI never needed it, but I see 2to3 options there [1], are they not working? [1] https://setuptools.readthedocs.io/en/latest/setuptools.html#options https://setuptools.readthedocs.io/en/latest/setuptools.html#...