浏览代码

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 年之前
父节点
当前提交
4ac4f83
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/devtools.mk

+ 2 - 2
desktop/devtools.mk

@@ -32,8 +32,8 @@ DEVTOOLS += \
 .PHONY: $(DEVTOOLS)
 $(DEVTOOLS):
 	@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):
 	@mkdir -p $@