Open rvodden opened 1 year ago
I have raised the following pull request to address this issue. Note that my original suggestion of using the site package doesn't work when using the python virtualenv
module, and so I've used the sysconfig
package instead.
Describe the bug
Poetry build is making very strange assumptions about the nature of the virtualenv which poetry creates.
Current behavior
As far as I'm aware I have a completely normal poetry setup. I'm using pyenv to manage my virtual environments. When I run
bi poetry install
i get the following output:Reproduction steps
install pyenv create a virtualenv using pyenv create a poetry project in that virtualenv run
bi poetry install
Expected behavior
I'd expect
bi
to use correct semantics to establish the location of site-packages. For example, this command:will reliably report the location of
site-packages
. I don't really follow the logic which is employed to extract the site-packages location here: https://github.com/jfrog/build-info-go/blob/main/utils/pythonutils/poetryutils.go#L211-L217It looks to be making very specific assumptions about how virtualenvs are arranged which at first glance would appear to be more likely to be incorrect than correct in the majority of circumstances
Operating system type and version
ubuntu 20.04 i686