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 years ago
parent
commit
4ac4f83
1 changed files with 2 additions and 2 deletions
  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 $@