Просмотр исходного кода

fix(dev): Use LDFLAGS for uwsgi on Apple's M1 (#30071)

It seems the wheel I built on #29739 was dependent on files within my host. The installer from Python.org places some files under /Library/Frameworks/Python3.framework and my wheel required it.

Until https://github.com/unbit/uwsgi/issues/2361 is fixed, we need to use LDFLAGS=-L/opt/homebrew/Cellar/gettext/0.21/lib since `-lintl` appears in the clang line to build uwsgi.
Armen Zambrano G 3 лет назад
Родитель
Сommit
2614a63826
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/lib.sh

+ 1 - 1
scripts/lib.sh

@@ -117,7 +117,7 @@ install-py-dev() {
         pip install https://storage.googleapis.com/python-arm64-wheels/confluent_kafka-1.5.0-cp38-cp38-macosx_11_0_arm64.whl
         # uwsgi does not properly install via pyenv Python installations
         # https://github.com/unbit/uwsgi/issues/2361
-        pip install https://storage.googleapis.com/python-arm64-wheels/uWSGI-2.0.19.1-cp38-cp38-macosx_11_0_universal2.whl
+        LDFLAGS=-L/opt/homebrew/Cellar/gettext/0.21/lib  pip install "uWSGI==2.0.19.1"
     fi
     # This hack is until we can upgrade to a newer version of Selenium
     fx_profile=.venv/lib/python3.8/site-packages/selenium/webdriver/firefox/firefox_profile.py