Skip to content

Commit

Permalink
setup.py: use find_packages
Browse files Browse the repository at this point in the history
Is there a reason to not do this? It gets the right set of packages when
I run it. Saves chores like python#9587 or python#9061
  • Loading branch information
hauntsaninja committed Oct 13, 2020
1 parent 92a5cbd commit 04d1816
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# This requires setuptools when building; setuptools is not needed
# when installing from a wheel file (though it is still neeeded for
# alternative forms of installing, as suggested by README.md).
from setuptools import setup
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
from mypy.version import __version__ as version
from mypy import git
Expand Down Expand Up @@ -178,11 +178,7 @@ def run(self):
license='MIT License',
py_modules=[],
ext_modules=ext_modules,
packages=[
'mypy', 'mypy.test', 'mypy.server', 'mypy.plugins', 'mypy.dmypy',
'mypyc', 'mypyc.test', 'mypyc.codegen', 'mypyc.ir', 'mypyc.irbuild',
'mypyc.primitives', 'mypyc.transform', 'mypyc.analysis'
],
packages=find_packages(),
package_data={'mypy': package_data},
scripts=['scripts/mypyc'],
entry_points={'console_scripts': ['mypy=mypy.__main__:console_entry',
Expand Down

0 comments on commit 04d1816

Please sign in to comment.