diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2020-04-19 15:50:06 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2020-04-19 15:50:06 +0200 |
| commit | d34930e2539f37be8572dcc2906244d43e76014c (patch) | |
| tree | 9725d36714ed0e1434cff359fe6b99454168dc19 /sphinx/__init__.py | |
| parent | 5c14375365fe9a9f7b97cc37988d17a8a3ec56d2 (diff) | |
| download | sphinx-git-d34930e2539f37be8572dcc2906244d43e76014c.tar.gz | |
Check for __display_version__ in package_dir
Diffstat (limited to 'sphinx/__init__.py')
| -rw-r--r-- | sphinx/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/__init__.py b/sphinx/__init__.py index 3aecfbfcc..8caea80d0 100644 --- a/sphinx/__init__.py +++ b/sphinx/__init__.py @@ -56,6 +56,7 @@ if __version__.endswith('+'): __version__ = __version__[:-1] # remove '+' for PEP-440 version spec. try: ret = subprocess.run(['git', 'show', '-s', '--pretty=format:%h'], + cwd=package_dir, stdout=PIPE, stderr=PIPE) if ret.stdout: __display_version__ += '/' + ret.stdout.decode('ascii').strip() |
