8000 Add comments clarifying some things added here · python/mypy@2c9250e · GitHub
[go: up one dir, main page]

Skip to content

Commit 2c9250e

Browse files
author
Guido van Rossum
committed
Add comments clarifying some things added here
1 parent fda8817 commit 2c9250e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ parallel = true
2121
show_missing = true
2222

2323
[metadata]
24+
# This seems to be used only by bdist_wheel.
25+
# You need "pip3 install wheel".
26+
# Then run "python3 setup.py bdist_wheel" to build a wheel file
27+
# (and then upload that to PyPI).
2428
requires-dist =
2529
typed-ast >= 0.6.1; sys_platform != 'win32'
2630
typing >= 3.5.2; python_version < "3.5"

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
sys.stderr.write("ERROR: You need Python 3.2 or later to use mypy.\n")
1010
exit(1)
1111

12+
# This requires setuptools when building; setuptools is not needed
13+
# when installing from a wheel file (though it is still neeeded for
14+
# alternative forms of installing, as suggested by README.md).
1215
from setuptools import setup
1316
from setuptools.command.build_py import build_py
1417
from mypy.version import base_version
@@ -92,6 +95,10 @@ def run(self):
9295
if os.name == 'nt':
9396
scripts.append('scripts/mypy.bat')
9497

98+
# These requirements are used when installing by other means than bdist_wheel.
99+
# E.g. "pip3 install ." or
100+
# "pip3 install git+git://github.com/python/mypy.git"
101+
# (as suggested by README.md).
95102
install_requires = []
96103
if sys.platform != 'win32':
97104
install_requires.append('typed-ast >= 0.6.1')

0 commit comments

Comments
 (0)
0