From 686b5f297e4c748a063544e9c944e91282d12a78 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 6 Mar 2020 08:23:01 +0530 Subject: [PATCH] Ensure glfw is imported from the correct place --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 92786fb4d..9299e8472 100755 --- a/setup.py +++ b/setup.py @@ -23,13 +23,14 @@ from typing import ( Union ) -from glfw import glfw - if sys.version_info[:2] < (3, 6): raise SystemExit('kitty requires python >= 3.6') base = os.path.dirname(os.path.abspath(__file__)) -verbose = False +sys.path.insert(0, base) +from glfw import glfw # noqa del sys.path[0] + +verbose = False build_dir = 'build' constants = os.path.join('kitty', 'constants.py') with open(constants, 'rb') as f: