Browse Source

Fixing C6 build issue, pypi.python.org wants to enforce TLS 1.2 based requests. Hue uses pypi.python.org for python modules installation. This change contains two fixes.

1. change the order in -H PATTERNS, priority order in this way: archive.cloudera.com,pypi.infra.cloudera.com,pypi.python.org
2. use --index-url for pypi.infra.cloudera.com based package search.
Prakash Ranade 7 năm trước cách đây
mục cha
commit
4ac4f83650
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      desktop/devtools.mk

+ 2 - 2
desktop/devtools.mk

@@ -32,8 +32,8 @@ DEVTOOLS += \
 .PHONY: $(DEVTOOLS)
 .PHONY: $(DEVTOOLS)
 $(DEVTOOLS):
 $(DEVTOOLS):
 	@echo "--- Installing development tool: $@"
 	@echo "--- Installing development tool: $@"
-	$(ENV_EASY_INSTALL) -f http://archive.cloudera.com/desktop-sdk-python-packages/ \
-	   -H pypi.python.org,archive.cloudera.com $(SETUPTOOLS_OPTS) $(subst ],,$(subst [,==,$@))
+	$(ENV_EASY_INSTALL) -f http://archive.cloudera.com/desktop-sdk-python-packages/ -i https://pypi.infra.cloudera.com/api/pypi/pypi-public/simple/ \
+	   -H archive.cloudera.com,pypi.infra.cloudera.com,pypi.python.org $(SETUPTOOLS_OPTS) $(subst ],,$(subst [,==,$@))
 
 
 $(BLD_DIR):
 $(BLD_DIR):
 	@mkdir -p $@
 	@mkdir -p $@