0

Earlier when I poetry installed my local package its correct path used to be shown when I pip list

Old versions poetry: 1.0.2

pip list

package                          version                        location
----------                       ---------                      ------------
local_pacage                      1.0.0                         /Users/username/project

Updated version poetry: 1.1.6 pip version was also updated don't remember the old version

pip list

package                              version                      
----------                          ---------                   
local_pacage                       1.0.0             

pip list -v shows the location as site packages always even when installed from other path using poetry. Earlier it used to show correctly. Note: Installer column shows installer as poetry, it's just the location

package                              version              location                                                          Installer
----------                          ---------             ----------                                                     ------------
local_pacage                       1.0.0                   /Users/username/site-packges                    poetry

Any idea what could be the reason. Could it be a change in poetry or pip.

Origin
  • 1,182
  • 1
  • 10
  • 25

1 Answers1

1

The way of how poetry installs the package in editable mode has changed between 1.0 and 1.1.

Prior 1.1 an egg-link file was create. Since 1.1 a .pth file is used as described here. This change leads to the behavior you see.

Also see abn's answers in the issue tracker:

finswimmer
  • 10,896
  • 3
  • 34
  • 44