mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
sys_path: prepend/prefer egg-link files
With `pip install -e` the generated .egg-link file gets preferred over any normally installed distribution, and `pip uninstall` will first remove the egg-link before the normal package.
This commit is contained in:
@@ -42,9 +42,9 @@ def test_get_venv_path(venv):
|
||||
site_pkgs = (glob(pjoin(venv, 'lib', 'python*', 'site-packages')) +
|
||||
glob(pjoin(venv, 'lib', 'site-packages')))[0]
|
||||
ETALON = [
|
||||
site_pkgs,
|
||||
pjoin('/path', 'from', 'egg-link'),
|
||||
pjoin(site_pkgs, '.', 'relative', 'egg-link', 'path'),
|
||||
site_pkgs,
|
||||
pjoin(site_pkgs, 'dir-from-foo-pth'),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user