Browse Source

dev: unblock make install-py-dev on Big Sur by forcefully downloading grpcio wheel for older MacOS (#23754)

josh 4 years ago
parent
commit
e84c9821cf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Makefile

+ 5 - 0
Makefile

@@ -100,6 +100,11 @@ install-js-dev: node-version-check
 
 install-py-dev: ensure-pinned-pip
 	@echo "--> Installing Sentry (for development)"
+ifdef BIG_SUR
+	# grpcio 1.35.0 is very painful to compile on Big Sur, and is not really surfaced in testing anyways.
+	# So we set SYSTEM_VERSION_COMPAT=1 to get pip to download grpcio wheels for older MacOS.
+	SYSTEM_VERSION_COMPAT=1 $(PIP) install 'grpcio==1.35.0'
+endif
 	# SENTRY_LIGHT_BUILD=1 disables webpacking during setup.py.
 	# Webpacked assets are only necessary for devserver (which does it lazily anyways)
 	# and acceptance tests, which webpack automatically if run.