We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81df467 commit b418a9fCopy full SHA for b418a9f
setup.py
@@ -14,12 +14,15 @@
14
# alternative forms of installing, as suggested by README.md).
15
from setuptools import setup
16
from setuptools.command.build_py import build_py
17
-from mypy.version import base_version
+from mypy.version import base_version, __version__
18
from mypy import git
19
20
git.verify_git_integrity_or_abort(".")
21
22
-version = base_version
+if any(dist_arg in sys.argv[1:] for dist_arg in ('bdist_wheel', 'sdist')):
23
+ version = base_version
24
+else:
25
+ version = __version__
26
description = 'Optional static typing for Python'
27
long_description = '''
28
Mypy -- Optional Static Typing for Python
0 commit comments