Skip to content

Hash validation with python dependencies from private git repo failing #21145

Closed Answered by jsirois
jake-normal asked this question in Q&A
Discussion options

You must be logged in to vote

This one is pretty easy by inspection of that project's setup.py.

In short, if a project's build is not reproducible, Pex can't help you - you must fix non-reproducible builds out of band and point Pex at those. If you can't for some reason, you must pre-build wheels and point Pants at an --index or --find-links repo with those fixed wheels.

That said, here you go - let me know if you need more help, but this should be enough for you to solve the problem:

# Get the repo:
git clone https://github.com/johnathanchiu/unstructured
cd unstructured
git reset --hard 6a70fc4caab489d88ad1613af9f4a53581d8ffb3

# Setup a build env:
python -mvenv /tmp/sdist-build.venv
/tmp/sdist-build.venv/bin/pip -q …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jake-normal
Comment options

@jsirois
Comment options

Answer selected by jake-normal
Comment options

benjyw
Oct 17, 2024
Maintainer Sponsor

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants