mirror of
https://github.com/jamesroberts/fastwsgi.git
synced 2025-12-21 06:09:31 -06:00
Fix compiler selection
This commit is contained in:
@@ -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*;
|
||||||
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__/
|
rm -rf build/ dist/ bin/ __pycache__/
|
||||||
sudo python3 setup.py install
|
sudo CC="ccache clang-11" python3 setup.py install
|
||||||
5
setup.py
5
setup.py
@@ -1,13 +1,8 @@
|
|||||||
import os
|
|
||||||
import sys
|
|
||||||
import glob
|
import glob
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from distutils.core import Extension
|
from distutils.core import Extension
|
||||||
from setup_libuv import build_libuv
|
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")
|
SOURCES = glob.glob("fastwsgi/*.c") + glob.glob("llhttp/src/*.c")
|
||||||
|
|
||||||
module = Extension(
|
module = Extension(
|
||||||
|
|||||||
Reference in New Issue
Block a user