Skip to content

Commit 8c17dd8

Browse files
msullivanJukkaL
authored andcommitted
Don't compile mypyc/lib-rt/setup.py (#7497)
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.
1 parent 41db9a0 commit 8c17dd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ def run(self):
103103
# We don't populate __file__ properly at the top level or something?
104104
# Also I think there would be problems with how we generate version.py.
105105
'version.py',
106-
))
106+
)) + (
107+
# Don't want to grab this accidentally
108+
os.path.join('mypyc', 'lib-rt', 'setup.py'),
109+
)
107110

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

0 commit comments

Comments
 (0)