Skip to content

What is the difference between the entry_points and the cmdclass parameters to setuptools.setup? #4656

Answered by abravalheri
amn asked this question in Q&A
Discussion options

You must be logged in to vote

does your answer imply I cannot use entry-points "in the build of my own package"?

Yes, that is what it implies. It may work incidentally sometimes, but it is not reliable for ALL packages and package layouts.

I also was under the impression -- by the documentation -- that entry-points can be used for defining custom build procedure(s), one way or another? Is it not so?

That might be an over-stretch. entry-points does provide a way of customising builds, but AFTER these entry-points are installed. In other words, they can be used for build plugins, but will have no immediate effect on the package providing them (as they are not installed yet)1. An easy way of thinking about it is: ent…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@zahlman
Comment options

@amn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by amn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants