Skip to content

Commit 5e2f65b

Browse files
authored
Fix lib-rt/setup.py so it can be run by build (#20369)
This adds same hack as in top-level `setup.py`.
1 parent 4fabef2 commit 5e2f65b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mypyc/lib-rt/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
from distutils import ccompiler, sysconfig
1212
from typing import Any
1313

14+
# we'll import stuff from the source tree, let's ensure is on the sys path
15+
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
16+
1417
import build_setup # noqa: F401
1518
from setuptools import Extension, setup
1619
from setuptools.command.build_ext import build_ext

0 commit comments

Comments
 (0)