https://pantsbuild.org/ logo
i

important-librarian-62877

06/04/2020, 8:13 PM
I have another question unrelated to my previous above. I have an egg file for a 3rd party dependency that is specified as a
python_requirement_library
. Within our pants.toml file, we have the following:
Copy code
[python-repos]
repos = [
    "%(buildroot)s/3rdparty/repos"
  ]
In pants 1.8, that egg file was being picked up from the repos directory, but in 1.28 it is not able to be found. Do I need to specify it some other way?
a

aloof-angle-91616

06/04/2020, 8:14 PM
my first thought is that pants 1.28 uses pex version 2, which uses pip to resolve, and i was just poking around in the pip source code and i don’t remember if it handles eggs, either by default or at all. @enough-analyst-54434 or @hundreds-father-404 will likely have greater context on this question
i

important-librarian-62877

06/04/2020, 8:20 PM
Aaaah ok. In the meantime, I'll search around and see if I can figure out how pip handles egg files. Would an alternative be to pack the 3rd party dependency as a
.whl
?
h

hundreds-father-404

06/04/2020, 8:25 PM
You could try using Pants 1.25.x to see if that is indeed the issue, because that still uses Pex 1.6. But I would be surprised if Pip doesn’t understand egg files.
(Sorry I can’t be more helpful right now - have been OOO past few days for political organizing. Will be back tomorrow)
3
And yes to
.whl
being understood for sure
i

important-librarian-62877

06/04/2020, 8:26 PM
Some quick googling is showing that pip does not handle eggs, so I think I'll go the
.whl
route. Seems like egg files are on the way out anyways.
👍 1
Thanks!
❤️ 2
3 Views