Skip to content

pex without pypi - workaround for not supporting --hashes? #1360

Answered by jsirois
electroniceagle asked this question in Q&A
Discussion options

You must be logged in to vote

So, Pex does support anything Pip supports in a requirements file including hashes:

^jsirois@gill ~ $ cd /tmp/
^jsirois@gill /tmp $ mkdir pex-hash
^jsirois@gill /tmp $ cd pex-hash/
^jsirois@gill /tmp/pex-hash $ python -mvenv venv
^jsirois@gill /tmp/pex-hash $ source venv/bin/activate
(venv) ^jsirois@gill /tmp/pex-hash $ pip -q install -U pip
(venv) ^jsirois@gill /tmp/pex-hash $ pip -q install -U pex
(venv) ^jsirois@gill /tmp/pex-hash $ pex -V
2.1.42
^jsirois@gill /tmp/pex-hash $ pip download -d dists ansicolors
Collecting ansicolors
  Using cached ansicolors-1.1.8-py2.py3-none-any.whl (13 kB)
Saved ./dists/ansicolors-1.1.8-py2.py3-none-any.whl
Successfully downloaded ansicolors
^jsirois@g…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jsirois
Comment options

@electroniceagle
Comment options

@jsirois
Comment options

Answer selected by electroniceagle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants