What is the difference between the entry_points
and the cmdclass
parameters to setuptools.setup
?
#4656
-
I've seen mention of both and they both seem to be very similar in terms of what they accomplish, yet I can't find documentation of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@abravalheri, I am sorry but that doesn't tell me the implications of these differences -- does your answer imply I cannot use I also was under the impression -- by the documentation -- that Furthermore, |
Beta Was this translation helpful? Give feedback.
-
Yes, that is what it implies. It may work incidentally sometimes, but it is not reliable for ALL packages and package layouts.
That might be an over-stretch.
It is mentioned in https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-cmdclass; and in the legacy documentation for distutils: https://setuptools.pypa.io/en/latest/deprecated/distutils/extending.html#integrating-new-commands (which has not yet been fully ported). Please note that setuptools documentation is a constantly evolving community effort. If you see something that don't sound right, or would like to see some improvements, please consider contributing with PRs. Footnotes
|
Beta Was this translation helpful? Give feedback.
Yes, that is what it implies. It may work incidentally sometimes, but it is not reliable for ALL packages and package layouts.
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…