* Update mypy to 1.6.1
* Fix mypy "Source file found twice under different module names" error
* Ignore type of intialized abstract class in tests
* Use more specific type ignore method-assign
* Type ignore for message.get_all
* Remove unused type ignore
* Add SizedBuffer type for xmlrpc.client.Transport subclass
* Add Self type for RequestHandlerClass in test
* Add type ignore for shutil.rmtree onexc handler
* Quote SizedBuffer
* Add news entry
* Remove no longer correct comment
* Update self import
* Also ignore type onerror=handler
* Update news entry
* Update news entry
Use the same code to determine isolated environment paths at
dependency install time and at environment setup time. We do not care
about the exact paths but the paths needs to be consistent at package
installation time and environment setup.
This should fix issues observed on platforms that customize the
installation schemes, such as Debian and Homebrew, where dependency
installation and isolated build environment setup resolved to
different paths.
Since this function is only used for creating isolated environments,
rename it to better describe what it does. This avoids needing to
think about why the implementation uses the "venv" paths scheme even
when pip is not running in a virtual environment.
Since we can't do anything about them in the transition (CPython is
dropping support for those entirely), there's nothing we can do but to
tell users to not use them.
This also accounts for Homebrew and Linuxbrew for now. Hopefully they
will come up with better solutions that don't trigger the location
mismatch warning.