virtualenv-api icon indicating copy to clipboard operation
virtualenv-api copied to clipboard

Fix `--system-site-packages` tests

Open dolfinus opened this issue 4 years ago • 1 comments

Since January 2020 virtualenv package was completely rewritten (v20+). It does not create no-global-site-packages.txt file anymore, that's why tests are failing now.

In this PR I've added few new methods: is_accessible, all_packages, all_package_names. They are working just like the existing is_installed, installed_packages, installed_package_names, but they do not use -l flag while calling pip freeze. This allows to get the list of all packages which are available in the current virtualenv including system ones.

IMHO, it's better than parse new config file type generated by latest virtualenv version.

dolfinus avatar May 13 '21 22:05 dolfinus

Test is failing because TravisCI is using virtualenv instead of system interpreter.

dolfinus avatar May 13 '21 23:05 dolfinus