-
Notifications
You must be signed in to change notification settings - Fork 8
plugins: suggest pyproject.toml or setup_requires? #49
Description
It seems the setup_requires keyword in the setup.py is still alive and kicking with no deprecation in sight.
This makes me wonder: what should we recommend to plugin developers?
As far as I can tell, the difference is that dependencies specified in setup_requires will be installed by easy_install, not by pip and therefore settings passed to pip (e.g. --find-links concerning where to install packages from) will be ignored.
Furthermore, since pyproject.toml isn't python code but just an ini file, it avoids the chicken-and-egg problem (execute setup.py to find out what you need to execute setup.py), can potentially be used by package managers other than setuptools and wheel, making it potentially more "future proof".
On the downside, pyproject.toml is an extra file, which actually also makes a MANIFEST.in necessary. Also, setup_requires would be supported by pip versions below 10.