aboutsummaryrefslogtreecommitdiffhomepage
path: root/python
diff options
context:
space:
mode:
authorGravatar cclauss <cclauss@bluewin.ch>2018-06-25 19:50:40 +0200
committerGravatar Jie Luo <anandolee@gmail.com>2018-06-25 10:50:40 -0700
commit35567c166842cca3ff6af3226ff526f25c79507f (patch)
tree90b2482dc84a1f1eb049483c40480d69fc393ee0 /python
parentfc243c15fb0a691d3fc0896803939c2a535b6a8c (diff)
global __version__ In setup.py (#4753)
This change helps both humans and linters to understand the unusual method of instantiating this global variable.
Diffstat (limited to 'python')
-rwxr-xr-xpython/setup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/setup.py b/python/setup.py
index 9a328cb5..1a282f99 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -44,6 +44,7 @@ def GetVersion():
with open(os.path.join('google', 'protobuf', '__init__.py')) as version_file:
exec(version_file.read(), globals())
+ global __version__
return __version__