You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
[Error] failed extracting python site package form the following virtual env "/home/rvodden/.pyenv/versions/3.10.7/envs/library"
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:
poetry run python -c 'import site; print(site.getsitepackages())'
It 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
The text was updated successfully, but these errors were encountered:
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-L217
It 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
The text was updated successfully, but these errors were encountered: