1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tests/unit
Ian Wienand d871bcd1bb Don't reset purelib/platlib when install-dir not set
Change 3affcaa2b8 attempts to reset
purelib & platlib to any "install-dir" specified by the user in
setup.cfg.  This code is used when we are installing wheels.

The problem with this is that distutils is *always* setting
"i.install_lib" -- even when the user specifies nothing.  This has the
result of unconditionally setting purelib == platlib.

On some systems this results in .so's from the wheel getting installed
into /usr/lib/python2.7 (purelib) rather than /usr/lib64/python
(platlib).  Because distribution-packaged libraries have installed
their .so into platlib, we can now have a situation where the new
pip-installed library is picking up an old .so from the distro package
... with predictably bad results.

This takes the approach of checking the configuration to see if the
user has overridden install-dir and only resetting the paths if they
have.  The override case is covered by existing test-cases.

Closes #2940
2015-08-19 14:56:53 +10:00
..
__init__.py break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00
test_appdirs.py Implement platform specific user config locations 2014-09-10 11:43:34 -04:00
test_basecommand.py Fix for Python 3.x, Refactor, and small changes 2014-09-18 07:44:02 -04:00
test_compat.py Adds test for native_str() 2014-09-01 21:47:04 -04:00
test_download.py Adjust tests to compensate for --trusted-hosts 2014-12-20 18:03:38 -05:00
test_download_hashes.py Use Flake8 on the test of pip's Python files 2014-01-28 19:47:58 -05:00
test_finder.py Merge pull request #2288 from xavfernandez/fix_dependency_links_log 2015-01-03 01:00:17 -05:00
test_index.py Ensure that Link().filename returns an unquoted filename 2014-12-18 20:27:43 -05:00
test_locations.py Don't reset purelib/platlib when install-dir not set 2015-08-19 14:56:53 +10:00
test_options.py Revert "Add option --no-check-certificate to skip ssl cert verification" 2014-12-20 17:29:19 -05:00
test_proxy.py Use requests instead of urllib2 2013-09-24 23:32:03 -04:00
test_req.py Don't return cached output for InstallRequirement().installed_version 2014-12-23 07:39:13 -05:00
test_unit_outdated.py Merge pull request #2331 from r1chardj0n3s/missing-state-file 2015-01-28 12:35:48 -05:00
test_utils.py Separate pip freeze command from operation 2014-12-16 06:50:20 -08:00
test_vcs.py Change "escape" to "translate" in escape_egg_surname(). 2014-10-01 07:14:47 -04:00
test_wheel.py Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00