On May 19, 2014, at 8:16 AM, Bohuslav Kabrda <[email protected]> wrote:
> Hi all, > (I hope that this hasn't been discussed previously) > so I've been trying to find out whether there's an explicit recommendation > for creating and naming scripts/entry points depending on Python version that > they're built with, but I didn't find any. As an example, setuptools' > easy_install uses "easy_install-MAJOR.MINOR" (with dash), while pip uses > "pipMAJOR.MINOR" (without a dash). Also, some projects only create > "foo-MAJOR.MINOR", while others also create "foo-MAJOR" (and most also create > "foo" without any versions). > It may seem like an overkill, but wouldn't it be best to standardize: > - which version is preferred (with or without dash) > - which of these three variants (foo-MAJOR.MINOR, foo-MAJOR, foo) should be > created by default > > Or better yet, I think it'd make sense to provide setuptools facilites to > create these variants in a sensible default way and provide installation > flags to alter this behaviour. Right now, it seems to me that every project > is doing this on its own, which is not only inconsistent, but it also > duplicates lots of efforts and is more error prone than providing one > centralized solution (e.g. a function in distutils/setuptools). > > Thoughts/comments? > Thanks! > I completely agree and this was something that has been on my radar for awhile. This also enables universal Wheels for projects that want/require having the version in the script name because the current way of hacking it yourself creates a command which is accurate for only one Python version. This is actually going to "do the wrong thing" in pure python Wheels because a wheel created with a script like that in Python 3.4 is also valid for Python 3.5 but the script wrappers will still have "3.4" in them. Personally I feel that foo, fooX, fooX.Y is a reasonable standard and it matches what Python itself does. Being consistent seems like a reasonable goal to have with it. ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Distutils-SIG maillist - [email protected] https://mail.python.org/mailman/listinfo/distutils-sig
