Skip to content

Dependency import collision question #2640

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

You must be logged in to vote
  1. Is the above the expected behavior?

Yes. The prerequisite knowledge is 2-fold:

  1. Pex never breaks existing users.
  2. There is very bad behavior going on here where the same file with differing contents is coming from different packages!

Addressing point 1: Since Pex never breaks existing users it only adds features and never removes them or changes defaults. As such, the best options are almost certainly not the default ones. You dug and found the best options, namely: --venv prepend --venv-site-packages-copies. This produces a venv nearly identical to the one you would construct by hand using whatever tools you'd normally use - for example python -mvenv and pip install in that venv. The…

Replies: 1 comment 3 replies

Comment options

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

@jsirois
Comment options

@jcrobak
Comment options

Answer selected by jcrobak
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