[01:57:07] <toad_polo> [cooperlees](https://matrix.to/#/@freenode_cooperlees:matrix.org): I think it's impossible.
[01:58:00] <toad_polo> The correct way to do it is to have a separate package that installs the console script, and have the extra add a dependency on that.
[02:00:17] <toad_polo> Though if the extra depends on the main project that's a bit awkward dependency-wise, but it seems fine.
[03:13:22] <cooperlees> Bummer. Will try play before giving up but I feel that is true
[03:13:35] <cooperlees> Might look at how hard it might be to add - I am sure there will be pep work
[12:05:34] <toad_polo> cooperlees: It's unlikely to be successful.
[12:06:49] <toad_polo> This and other similar things have come up before and it doesn't really make sense to try to expand the way extras work like that.
[12:07:00] <toad_polo> How would wheels for that work, for example?
[13:44:47] <cooperlees> toad_polo: Without specifying the [bla] extra you don't install / generate that console script
[13:45:10] <cooperlees> I know wheel is just a zip tho, but pip / setuptools could know - worst case rm it
[13:46:03] <toad_polo> cooperlees: I think it would be way more complicated than it's worth since you can achieve the exact same thing by putting the script in its own package.
[13:46:12] <toad_polo> It's not like packages are expensive.
[13:46:59] <cooperlees> I don't agree - This adds more metadata to store, more setup.* / tool files to look after, more repos, as Python works better with the package is at the root of a repo
[13:47:51] <cooperlees> But I think I'll conceed and just make blackd exit stating the dep (aiohttp*) is not installed and exit with an error
[13:47:53] <toad_polo> Yeah, it's mildly awkward. I dunno, I definitely think it's been brought up before.
[13:49:57] <toad_polo> Anyway, I'm not the arbiter of these things. I actually don't even understand the wheel installation process with enough detail to say that it would be especially hard.
[13:51:35] <toad_polo> Just that extras weren't really designed with that in mind AFAICT, and they occupy a weird space in the ecosystem (like I think it's not even recorded what extras you specified when you installed whatever you installed), so a lot of proposals to expand their use beyond "specifies some extra packages to install" tend to be hard to retrofit onto the existing system.
[15:19:44] <cooperlees> yeah I don't doubt, but seems a useful use case to polish up