Skip to content

Commit

Permalink
Don't compile mypyc/lib-rt/setup.py (#7497)
Browse files Browse the repository at this point in the history
mypyc/lib-rt/setup.py (used for compiling the mypyc runtime library
tests) was getting picked up by the mypyc compilation globs, which
results in it producing a toplevel (!) module named setup.

Don't do that.
  • Loading branch information
msullivan committed Sep 11, 2019
1 parent a86be75 commit 50eb922
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Expand Up @@ -103,7 +103,10 @@ def run(self):
# We don't populate __file__ properly at the top level or something?
# Also I think there would be problems with how we generate version.py.
'version.py',
))
)) + (
# Don't want to grab this accidentally
os.path.join('mypyc', 'lib-rt', 'setup.py'),
)

everything = (
[os.path.join('mypy', x) for x in find_package_data('mypy', ['*.py'])] +
Expand Down

0 comments on commit 50eb922

Please sign in to comment.