[Distutils] Adding entry points into Distutils ?
Ben Finney
ben+python at benfinney.id.au
Wed May 6 04:03:57 CEST 2009
Tarek Ziadé <ziade.tarek at gmail.com> writes:
> I think is simpler with the "somepackage.somemodule:MyPluginClass" notation
>
> This is how setuptools does roughly:
>
> >>> parts = "somepackage.somemodule:MyPluginClass".split(':')
[…]
Using the standard import notation is no more difficult:
>>> parts = "somepackage.somemodule.MyPluginClass".rsplit('.', 1)
>>> parts
['somepackage.somemodule', 'MyPluginClass']
versus:
>>> parts = "somepackage.somemodule:MyPluginClass".split(':', 1)
>>> parts
['somepackage.somemodule', 'MyPluginClass']
I don't see any advantage, in the context of this discussion, to having
an additional, incompatible naming for full-path-to-a-class.
--
\ “The lift is being fixed for the day. During that time we |
`\ regret that you will be unbearable.” —hotel, Bucharest |
_o__) |
Ben Finney
More information about the Distutils-SIG
mailing list