[15:09:48] <rnix> apollo13: https://dh-virtualenv.readthedocs.io/en/latest/ this one looks promising either, though OS bound
[15:49:52] <kboers> Hello! Can anyone confirm that later versions of virtualenv do NOT create the virtualenv-2.7 bin script?
[15:55:22] <kboers> Looking through the history for setup.py, hoping to see the entry points changes over time, but no such luck. Maybe it was a distro thing? Some version of 2.7.3 that I brew installed might have done it, and not virtualenv
[16:58:53] <kboers> Yeah, nevermind, seems like it’s a distro thing. Brew has done it, and yum does it
[18:30:44] <rangerpb> hey folks, suppose i wanted to use setuptools' entry_point function, but I dont want every entry_point to end up in /usr/bin. Anyone think of a way I could do?
[18:31:02] <rangerpb> or perhaps mimic entry_point another way and just install the result elsewhere?
[18:34:06] <daniel_holth> What are you packaging? Sbin?
[18:35:46] <rangerpb> actually working on cloud-init
[18:36:32] <rangerpb> which had one entry_point for cloud-init ... but we added another one and don't want to flood /usr/bin but do love the upside the entry_point provides including taking care of the python version etc
[19:11:53] <dstufft> rangerpb: Hmm, I don't think that there's aything like that no
[19:12:17] <dstufft> rangerpb: are you not expecting end users to invoke these?
[19:15:15] <rangerpb> dstufft, correct, this is something other system commands would execute
[19:17:00] <dstufft> rangerpb: yea I don't think there's anything like that :/ The cloest I could think of is sys.executable -m path.to.a.module.instead.of.a.command.on.disk but that assumes that it's cloud-init executing these and not some other system
[20:04:03] <[Tritium]> ionelmc: yes - even when root and virtualenv
[20:24:05] <ionelmc> [Tritium]: wouldn't you have it say something like "warning: don't use root, use a virtualenv instead" ? :-)
[20:25:16] <ionelmc> the warning needs to tell the user an alternative, besides the not always doable "don't use root"
[20:26:04] <[Tritium]> ionelmc: let me just put a package on pypi that does shutil.rmtree('/') in setup.py and I'll get back to you...
[20:28:05] <Wooble> to be fair, I'd be just as annoyed if a package installing as me deleted ~
[20:29:50] <Wooble> granted I'm not the only person who uses my machine at home.
[20:29:52] <ionelmc> [Tritium]: getting users for that won't be easy
[20:30:07] <ionelmc> you may get lucky on hackernews
[20:34:27] <dstufft> I don't think that shutil.rmtree in setup.py is that big of a deal, because once you're executing code from someone else it's basically impossible to protect yourself from them being malicious
[20:34:39] <dstufft> even if you're not running as root