Преглед изворни кода

HUE-2851 [build] Pickup system packages

Due to licensing issues, Hue is unable to bundle in certain dependencies,
like psycopg2. This patch allows Hue admins to install packages in
the global python site-packages that will be exposed to Hue. The bundled
Hue dependencies take precedence over the global dependencies to make
sure we are not using an unexpected version.

This does expose Hue to some risk:

1. Hue developers could accidentally introduce a dependency on a
package local to their system. The unit tests should detect and
protect against it.

2. Since we have no control over what packages the end user installs
for themselves, they could install a version that is incompatible
with Hue. Errors like this should be caught by doing matrix testing
with all the Hue supported platforms.
Erick Tryzelaar пре 10 година
родитељ
комит
d62347e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -129,7 +129,7 @@ virtual-env: $(BLD_DIR_ENV)/stamp
 $(BLD_DIR_ENV)/stamp:
 	@echo "--- Creating virtual environment at $(BLD_DIR_ENV)"
 	$(SYS_PYTHON) $(VIRTUAL_BOOTSTRAP) \
-		$(VIRTUALENV_OPTS) --no-site-packages $(BLD_DIR_ENV)
+		$(VIRTUALENV_OPTS) --system-site-packages $(BLD_DIR_ENV)
 	@touch $@
 	@echo "--- $(BLD_DIR_ENV) ready"