[Python-Dev] do people use sys._mercurial? (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Sun Jan 24 07:17:32 EST 2016
- Previous message (by thread): [Python-Dev] do people use sys._mercurial?
- Next message (by thread): [Python-Dev] do people use sys._mercurial?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 24 January 2016 at 05:48, Brett Cannon <brett at python.org> wrote:
On Sat, 23 Jan 2016 at 11:45 francismb <francismb at email.de> wrote:
for me sys.mercurial it's already returning that (?) : what should return now? (it's a bug?) Depends on your OS and how CPython was built whether it returns that value or something more useful. IOW it's not a bug.
Linux distros tend to build Python from a tarball rather than a source checkout, for example, which means the build directory doesn't include any VCS details:
$ python3 Python 3.4.3 (default, Jun 29 2015, 12:16:01) [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux Type "help", "copyright", "credits" or "license" for more information.
import sys sys.mercurial ('CPython', '', '')
While my local checkout does have those details:
$ ./python Python 3.6.0a0 (default:32a4e7b337c9, Jan 23 2016, 12:30:00) [GCC 5.3.1 20151207 (Red Hat 5.3.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information.
import sys sys.mercurial ('CPython', 'default', '32a4e7b337c9')
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message (by thread): [Python-Dev] do people use sys._mercurial?
- Next message (by thread): [Python-Dev] do people use sys._mercurial?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]