Commit Graph

49 Commits

Author SHA1 Message Date
Marcus Smith 0708447bba don't --user install in --system-site-packages virtualenvs with conflict 2012-06-23 08:35:22 -07:00
Marcus Smith 2b9e9b4a1e dist_in_usersite explicitly returns False 2012-06-11 07:04:01 -07:00
Marcus Smith 0aadda7f16 usersite installs should ignore version conflicts with site 2012-06-10 18:16:48 -07:00
Paul Nasrat b8eae098af Merge pull request #464 from gvalkov/call_subprocess
Move pip.call_subprocess to pip.util.call_subprocess
2012-05-13 13:40:03 -07:00
jstasiak eb8a19ab6f Fix unit decimal prefix (KB->kB) 2012-03-22 14:09:34 +11:00
Oren Held eb096fb29c Adapt unit to SI standards: Kb/Mb -> KB/MB
Lowercase b means 'bit' while uppercase means 'byte':
http://en.wikipedia.org/wiki/Megabyte
2012-03-09 21:02:13 +02:00
Georgi Valkov f77a6de500 Move pip.call_subprocess to pip.util.call_subprocess 2012-03-02 01:12:36 +02:00
Paul Nasrat 35027f278b Fix pep8 CI build.
Tested locally:
=====================================================
================== Running pep8 =====================

Searching for pep8
Reading http://pypi.python.org/simple/pep8/
Reading http://github.com/cburroughs/pep8.py/tree/master
Reading http://github.com/jcrocholl/pep8
Best match: pep8 0.6.1
Processing pep8-0.6.1-py2.7.egg
pep8 0.6.1 is already the active version in easy-install.pth
Installing pep8 script to
/Users/pnasrat/Development/pip/pip_virtualenv/bin

Using
/Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.7/site-packages/pep8-0.6.1-py2.7.egg
Processing dependencies for pep8
Finished processing dependencies for pep8

==================== Ended pep8 =====================
=====================================================
2012-01-30 06:26:12 +00:00
Jannis Leidel afaa58d024 Minor name nitpicking and a fix for subcommands. 2012-01-20 14:38:34 +01:00
Jannis Leidel b77a7c4f5f Merge branch 'scripting' of https://github.com/pvanderlinden/pip into pvanderlinden-scripting 2012-01-20 14:16:11 +01:00
Paul van der Linden 8d67101b6e path exists action 2011-10-04 16:10:46 +02:00
Lev Givon 7a9242310c Directly extract symbolic links rather than their targets (#288). 2011-05-29 17:19:19 -04:00
Paul Nasrat 2860dc7d41 Fix whitespace, etc for pep8 compliance
Reran tests after changes on 2.4, 2.6, 3.2 all pass.

=====================================================
================== Running pep8 =====================

Searching for pep8
Reading http://pypi.python.org/simple/pep8/
Reading http://github.com/cburroughs/pep8.py/tree/master
Reading http://github.com/jcrocholl/pep8
Best match: pep8 0.6.1
Processing pep8-0.6.1-py2.6.egg
pep8 0.6.1 is already the active version in easy-install.pth
Installing pep8 script to /Users/pnasrat/Development/pip/pip_virtualenv/bin

Using /Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.6/site-packages/pep8-0.6.1-py2.6.egg
Processing dependencies for pep8
Finished processing dependencies for pep8

==================== Ended pep8 =====================
=====================================================
2011-05-04 08:44:02 +01:00
Hugo Lopes Tavares d14d3b1986 added fix for edge case in pip.utils.find_command and moved `BadCommand` raise from `VersionControl.cmd` to `find_command` 2011-04-28 01:01:08 -03:00
Paul Nasrat 52b9598d93 Improve unittests to fix build failure
Extracted helper method and mock that for tests to avoid environment pollution.
2011-04-26 13:35:17 +01:00
Paul Nasrat 52bf4e9cbf Correct handling of default pathext case
Fixes #233

This adds tests which failed with existing code and then fixed with change.

Ran tests for test_basic in nose on 2.4.4, 2.7.1, 3.2

Ran full suite under 2.7

----------------------------------------------------------------------
Ran 107 tests in 172.398s
2011-04-21 19:38:32 +01:00
Carl Meyer d4e8f6785e Add support for Python 2.4 to Windows rmtree_errorhandler. 2011-03-23 00:33:32 -04:00
Carl Meyer bbe66378b4 We don't want rmtree errors ignored, we want them handled by our Windows-is-special handler. 2011-03-21 21:52:02 -04:00
Jannis Leidel afc2464772 Make use of our own rmtree to work around an issue on Windows with readonly files. 2011-03-19 20:57:37 +01:00
Vinay Sajip 680b5dfda0 Port to Python3 2011-03-15 15:49:48 -04:00
Alex Morega 0236a47f0a make sure paths found by find_command are files 2011-03-14 18:07:12 -04:00
Jannis Leidel bc840e2a62 Minor cosmetic changes. 2010-09-07 10:49:16 -07:00
Ronny Pfannschmidt 8bc74a9261 correctly handle pax_global_header for untar on python < 2.6 2010-09-07 19:26:13 +02:00
Hugo Lopes Tavares 567e359d29 refactored `Requirement.unpack_url` and splitted that in `pip.download` 2010-07-06 01:12:30 -03:00
Hugo Lopes Tavares 6101f0f3bb moved pip.util functions ``get_file_content``, ``urlopen``, ``is_url``, ``url_to_path``, ``path_to_url``, ``path_to_url2``, ``geturl`` and ``is_archive_file`` to pip.download 2010-07-02 11:53:07 -03:00
Carl Meyer 9e8cf9a0b4 a terminal size of (0,0) is no terminal size at all; fixes #139 2010-07-02 13:07:08 -04:00
Hugo Lopes Tavares 19cf68d82f removed circular import. moved running_under_virtualenv to pip.locations and updated imports 2010-07-01 21:03:54 -03:00
Hugo Lopes Tavares 99bf39bcd6 removed _running_under_virtualenv defined in locations.py, and renamed pip.util.in_venv to pip.util.running_under_virtualenv 2010-07-01 12:27:07 -03:00
Hugo Lopes Tavares b5fc588cec tets care are case-sensitive and the right function is normpath, to change slashes to backslashes in win32 2010-06-09 19:55:27 -03:00
Hugo Lopes Tavares ab3ea6ec51 removed unused vars and imports 2010-06-03 21:58:16 -03:00
Hugo Lopes Tavares d06c98dc6f merged changes related to PEP 8 from hltbra's fork 2010-06-02 23:25:26 -03:00
Ian Bicking 77f303bd41 minor whitespace and formatting stuff 2010-05-25 10:54:05 -05:00
Dave Abrahams f8555ddabd Explicitly request the identity encoding as insurance against http://bugs.python.org/issue8732 2010-05-19 16:01:41 -04:00
Dave Abrahams 2e2508d0fd Implemented installation from file://-scheme URIs.
Intended to fix http://bitbucket.org/ianb/pip/issue/114.  Probably
needs more comprehensive tests.

Workarounds for broken URL handling in Python standard libs; redirect
to index.html for file:// URLs

urlunsplit gets confused by '+', etc.
2010-05-17 20:33:13 -04:00
Carl Meyer 85fae257c2 Fix some pyflakes warnings. Thanks Simon Cross. 2010-04-15 11:59:55 -04:00
Alexandre Conrad 9b761cb418 better directory detection and rename 'filename' functions to 'path' functions 2010-04-13 18:12:50 +02:00
Alexandre Conrad c8b6fa50fb make pip work when current or parent dir is given: 'pip install .' and 'pip install ..' 2010-04-10 11:57:49 +02:00
Carl Meyer c74064b26d install headers in saner locations (still not sure what to do in virtualenv); fixes #73 2010-03-09 17:00:09 -05:00
Carl Meyer 107835ec99 factor out get_installed_distributions utility function and add pip uninstall autocomplete; fixes #76 2010-03-09 14:39:48 -05:00
Cody Soyland e238291990 Added pip search command with basic documentation and tests. 2010-02-22 17:03:05 -05:00
Carl Meyer 9a465eeb10 add --local option to freeze; fixes #9 2010-02-22 00:37:28 -05:00
Carl Meyer 0fa4cb4f79 allow global pip to uninstall from anywhere; fixes #44 2010-02-20 12:13:21 -05:00
Carl Meyer 6ec86b9ade use canonical paths everywhere in uninstall
fixes failure to uninstall editables in certain edge cases with symlinks
2009-12-10 01:18:12 -05:00
Carl Meyer f0416ebddd use shutil.move for rollback-save (fixes #27)
If TMPDIR is on a different filesystem, this has the potential to lose
file ownership info. In general that shouldn't be an issue; seems to
be the best we can do.
2009-12-05 00:23:35 -05:00
Carl Meyer 1b905e0456 refactor uninstall rollback-save to use full paths 2009-12-04 14:40:26 -05:00
Ian Bicking 8ed9acae60 Factor out the requirement handling into pip.req, and most of the remaining utility functions into pip.util 2009-11-20 18:26:59 -06:00
Ian Bicking b0df48ad31 Factor out the PackageIndex code; move more stuff to pip.util 2009-11-20 17:39:44 -06:00
Ian Bicking dc6b8393eb Extracted the vcs support into a package/modules. Moved some routines from __init__ into pip.util 2009-11-20 15:03:40 -06:00
Ian Bicking 3e0f8fb780 Move all things pyflakes complains about into backwardcompat; extract the rmtree onerror logic into a separate function 2009-11-20 13:04:33 -06:00