On 6 March 2014 11:40, Ben Finney <[email protected]> wrote:
> * Use Distribute's ‘pkg_resources’[0] to query the version string > anywhere it's needed in the library. This seems to be the preferred solution here too: http://stackoverflow.com/questions/2058802/how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package This is not ideal. While ‘distutils’ does provide ‘setup’ (allowing us > to define the version in one place), it does not provide a convenient > means of querying the resulting metadata of an installed distribution. > > For that, we need the third-party ‘pkg_resources’. This library was > proposed for the Python standard library in PEP 365, but rejected > <URL:http://legacy.python.org/dev/peps/pep-0365/> for reasons not > explained in that PEP. > Any ideas why it was rejected? > [0] <URL:https://pythonhosted.org/setuptools/pkg_resources.html>. Why is > it called “setuptools”, but actually named “Distribute”, for a > library named “pkg_resources”? That's a long and sad story, and its > telling would take this thread too far afield. > I have been confused in the past in that setuptools is another package. Apparently setuptools is an add on for distutils? http://stackoverflow.com/questions/10712809/how-to-require-and-install-a-package-using-python-3-x-distutils Is the information in this post on requires not working with distutils without setuptools still correct?
_______________________________________________ melbourne-pug mailing list [email protected] https://mail.python.org/mailman/listinfo/melbourne-pug
