From 5f48d1bc0420457b7ee1a63c10f48062058070a1 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Sat, 6 Dec 2025 15:21:46 +0000 Subject: [PATCH] Fix lib-rt/setup.py so it can be run by build --- mypyc/lib-rt/setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mypyc/lib-rt/setup.py b/mypyc/lib-rt/setup.py index d82c367aec31..964b56e4b562 100644 --- a/mypyc/lib-rt/setup.py +++ b/mypyc/lib-rt/setup.py @@ -11,6 +11,9 @@ from distutils import ccompiler, sysconfig from typing import Any +# we'll import stuff from the source tree, let's ensure is on the sys path +sys.path.insert(0, os.path.dirname(os.path.realpath(__file__))) + import build_setup # noqa: F401 from setuptools import Extension, setup from setuptools.command.build_ext import build_ext