diff options
author | Will Greenberg <willg@eff.org> | 2022-03-24 23:32:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 23:32:03 +0300 |
commit | 9ef6110e36e0cd03611409350de08b49b09c5bf2 (patch) | |
tree | ee47600c101538fb7f819d41fb0868f2ce79fb6f /tools | |
parent | 05a9ded297daf58144d966c6d6276f039761dd8d (diff) |
Point pip to filesystem packages rather than local HTTP server (#9240)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/_release.sh | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/tools/_release.sh b/tools/_release.sh index ed726fa64..d78b2ee96 100755 --- a/tools/_release.sh +++ b/tools/_release.sh @@ -157,29 +157,25 @@ done mkdir "dist.$version" for pkg_dir in $SUBPKGS do - mv $pkg_dir/dist "dist.$version/$pkg_dir/" + mv $pkg_dir/dist/* "dist.$version" done echo "Testing packages" cd "dist.$version" -# start local PyPI -python -m http.server $PORT & # cd .. is NOT done on purpose: we make sure that all subpackages are -# installed from local PyPI rather than current directory (repo root) +# installed from local archives rather than current directory (repo root) VIRTUALENV_NO_DOWNLOAD=1 virtualenv ../venv . ../venv/bin/activate pip install -U setuptools pip install -U pip -# Now, use our local PyPI. Disable cache so we get the correct KGS even if we -# (or our dependencies) have conditional dependencies implemented with if -# statements in setup.py and we have cached wheels lying around that would -# cause those ifs to not be evaluated. +# Now, use our local archives. Disable cache so we get the correct packages even if +# we (or our dependencies) have conditional dependencies implemented with if +# statements in setup.py and we have cached wheels lying around that would cause +# those ifs to not be evaluated. python ../tools/pip_install.py \ --no-cache-dir \ - --extra-index-url http://localhost:$PORT \ + --find-links . \ $SUBPKGS -# stop local PyPI -kill $! cd ~- # get a snapshot of the CLI help for the docs |