-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entry points require setuptools at runtime #1872
Comments
I'm not entirely clear what is being flagged here, but note that if the project is installed from a wheel using pip, the resulting entry point script does not depend on pkg_resources, and in that case a runtime dependency on pkg_resources would be wrong. |
Using If instead using |
I'm assuming either The point (as best I can understand it) of this ticket is that it's difficult to know what to do to handle an installer that adds a runtime dependency to a project (that the project can't know about). Of course, if you do |
Indeed, this uses In this case I think |
Relevant discussion that led to this ticket https://discuss.python.org/t/build-system-and-undeclared-dependency-on-it-during-runtime |
Avoiding the dependency is best for |
I see. It looks like we are indeed using an unsupported combination tools (which we'll try to improve by moving to pip directly), and the bug isn't in setuptools. Thanks for your patience here, and sorry for the noise! |
Consider the following
setup.py
(silly minimal reproducer):This generates a command that requires
setuptools
, yet doesn't declare the dependency:It isn't clear at all that a fix/workaround for the error about missing
pkg_resources
is to addsetuptools
toinstall_requires
. The entry script is, IMO, an implementation detail the user shouldn't care about.The text was updated successfully, but these errors were encountered: