From c2775c06cd6867be34ec8f5546dad687c035a8e4 Mon Sep 17 00:00:00 2001 From: James Roberts Date: Tue, 26 Apr 2022 22:51:57 +0200 Subject: [PATCH] Fix compiler selection --- clean_install.sh | 2 +- setup.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/clean_install.sh b/clean_install.sh index 0ea8d7e..553f19a 100644 --- a/clean_install.sh +++ b/clean_install.sh @@ -1,4 +1,4 @@ sudo rm -rf /usr/local/lib/python3.8/dist-packages/_fastwsgi*; sudo rm -rf /usr/local/lib/python3.8/dist-packages/fastwsgi*; rm -rf build/ dist/ bin/ __pycache__/ -sudo python3 setup.py install \ No newline at end of file +sudo CC="ccache clang-11" python3 setup.py install \ No newline at end of file diff --git a/setup.py b/setup.py index f9dbdde..224bc22 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,8 @@ -import os -import sys import glob from setuptools import setup from distutils.core import Extension from setup_libuv import build_libuv -if "linux" in sys.platform: - os.environ['CC'] = 'ccache clang-11' - SOURCES = glob.glob("fastwsgi/*.c") + glob.glob("llhttp/src/*.c") module = Extension(