Skip to content

Commit 77820ae

Browse files
authored
Resolving Build Warnings (Azure#20887)
* pip authenticate supplants pypi, doesn't supplement anymore * leave dev feeds enabled, still fallback to main pypi.org
1 parent 20f7701 commit 77820ae

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

eng/pipelines/templates/steps/auth-dev-feed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ steps:
2323
displayName: 'Pip Authenticate to feed'
2424
inputs:
2525
artifactFeeds: $(DevFeedName)
26-
onlyAddExtraIndex: true
26+
onlyAddExtraIndex: false

eng/tox/tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ platform = linux: linux
4343
passenv = *
4444
setenv =
4545
SPHINX_APIDOC_OPTIONS=members,undoc-members,inherited-members
46+
PIP_EXTRA_INDEX_URL=https://pypi.python.org/simple
4647
deps = {[base]deps}
4748
changedir = {toxinidir}
4849
install_command = python -m pip install {opts} {packages} --cache-dir {toxinidir}/../.tox_pip_cache_{envname}
@@ -225,6 +226,7 @@ changedir =
225226
{toxinidir}
226227
passenv = *
227228
setenv =
229+
{[testenv]setenv}
228230
DEPENDENCY_TYPE=Latest
229231
commands =
230232
{[deptestcommands]commands}
@@ -240,6 +242,7 @@ deps =
240242
changedir = {toxinidir}
241243
passenv = *
242244
setenv =
245+
{[testenv]setenv}
243246
DEPENDENCY_TYPE=Minimum
244247
commands =
245248
{[deptestcommands]commands}

scripts/devops_tasks/common_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def find_whl(package_name, version, whl_directory):
383383
def install_package_from_whl(
384384
package_whl_path, working_dir, python_sym_link=sys.executable
385385
):
386-
commands = [python_sym_link, "-m", "pip", "install", package_whl_path]
386+
commands = [python_sym_link, "-m", "pip", "install", package_whl_path, "--extra-index", "https://pypi.python.org/simple"]
387387
run_check_call(commands, working_dir)
388388
logging.info("Installed package from {}".format(package_whl_path))
389389

scripts/devops_tasks/test_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def _install_packages(self, dependent_pkg_path, pkg_to_exclude):
274274
"Installing filtered dev requirements from {}".format(filtered_dev_req_path)
275275
)
276276
run_check_call(
277-
[python_executable, "-m", "pip", "install", "-r", filtered_dev_req_path],
277+
[python_executable, "-m", "pip", "install", "-r", filtered_dev_req_path, "--extra-index", "https://pypi.org/simple"],
278278
dependent_pkg_path,
279279
)
280280
else:

0 commit comments

Comments
 (0)