Kamal Bin Mustafa
93cd6b1620
add --egg option to opt out --single-version-externally-managed
2012-05-20 11:18:36 +08:00
Paul Nasrat
2606cf37a6
Issue #482 search raises exception.
...
Handle pypi results for packages with no ordering.
TESTED=2.4.6 2.7.1 3.2.2
2012-03-18 10:33:13 +00:00
Stavros Korokithakis
d8babe79f2
--target-dir implies --ignore-installed.
2012-02-07 09:13:02 +02:00
Carl Meyer
ec5d336254
Fix shutil.move and test.
2012-02-03 12:37:53 -07:00
Stavros Korokithakis
eb03ec0dc1
Remove temporary directory, reduce option parameters.
2012-02-03 13:22:51 +02:00
Stavros Korokithakis
176d3a2663
Add target directory option.
2012-02-03 05:23:07 +02:00
Qiangning Hong
fa773cdec6
clean up temporary source code
2012-02-01 14:25:06 +08:00
Hugo Lopes Tavares
a3c42a3bcc
Fix issue #22 - pip search should set and return a userful shell status code
2011-12-29 16:25:46 -02:00
Hugo Lopes Tavares
6686e4df25
Merge branch develop from pypa/pip into hugobr/issue-22-search-should-set-useful-status-code
2011-12-04 18:58:33 -02:00
Hugo Lopes Tavares
615e724de2
Move status codes to a module and import from there
2011-12-04 18:50:34 -02:00
Herbert Pfennig
9732a96680
Fixes #391 : "pip freeze -r" ValueError if requirements file contains --find-links or --index-url
2011-12-03 21:59:16 -08:00
Carl Meyer
cfc1237360
Handle option defaults better in bundle command; fixes failing test introduced in pull request #340 .
2011-10-24 10:50:56 -06:00
Carl Meyer
9f547d0e3d
Merge pull request #340 from iguananaut/fix-install-defaults
...
Display correct defaults for pip install --help
2011-10-22 23:03:21 -07:00
Carl Meyer
cdec82b5e6
Merge branch 'fix-issue-49' into develop
2011-10-22 23:50:19 -06:00
Craig Kerstiens
b99427d94e
Allowing empty requirements.txt to be specified as valid dependency list by stopping to raise an InstallationError if the requirements set is empty. Closes #345 .
2011-09-13 16:25:20 +02:00
Erik Bray
1ecda0db16
Fix --upgrade to leave already up-to-date packages alone. Add --force-reinstall to force reinstallation even of up-to-date packages, as was the prior behavior.
2011-08-24 14:07:16 -04:00
Erik Bray
981b0f8a4c
Display correct defaults (incorporating defaults from pip.conf) for src_dir and build_dir in pip install --help output
2011-08-22 13:38:46 -04:00
Paul Nasrat
2a5e21b41f
Merge remote branch 'pnasrat/260-py3k-comparison-issue' into develop
2011-08-14 14:45:36 +01:00
Paul Nasrat
09bba5b4aa
Fix pep8
2011-08-04 16:09:38 +01:00
Hugo Lopes Tavares
9575e62b93
Moved SUCCESS and ERROR to basecommand.py, and added a FIXME, explaining why there is a integer check for status (return from self.run)
2011-08-02 13:54:18 -04:00
Hugo Lopes Tavares
7989ea9c5b
Changed HelpCommand to raise CommandError instead of InstalationError, when no command is found. It returns status SUCCESS (0) if find command or no command is specified.
2011-08-02 13:41:31 -04:00
Hugo Lopes Tavares
8e8ef0e34a
Changed SearchCommand.run to return SUCCESS or NO_MATCHES_FOUND (0 and 23) for found packages, and not found packages. Changed BaseCommand to check if run
returned int, and if so, it is the exit status code [dummy change, just to no break everything right now; the other commands should be changed too!]. Removed SearchCommandError because it was not used
2011-08-02 13:16:18 -04:00
Alex Morega
a58839e194
"search" command reports error via exception
2011-07-20 22:14:56 +03: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
Paul Nasrat
0922f81352
Work around failing test due to distutils.version issue
...
In py3k the following fails, handle this and use string comparison in worst
case.
Tested on 2.6 and 3.2
>> from distutils.version import LooseVersion as LV
>>> v1, v2, v3 = (LV('1.1'), LV('1.1.2'), LV('1.1a1'))
>>> v1 > v2
False
>>> v1 > v3
False
>>> v2 > v3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "distutils/version.py", line 70, in __gt__
c = self._cmp(other)
File "distutils/version.py", line 343, in _cmp
if self.version < other.version:
TypeError: unorderable types: int() < str()
2011-04-16 22:01:05 +01:00
Paul Nasrat
1691ee3855
Use pypi query list to support multiple cli searches Issue #44
2011-04-17 01:02:57 +08:00
Vinay Sajip
680b5dfda0
Port to Python3
2011-03-15 15:49:48 -04:00
Jannis Leidel
4d98a308ec
Completely use our rmtree instead of shutil.rmtree direct.
2010-11-22 20:32:14 +01:00
Jannis Leidel
d921b1dc55
Also bail in the uninstall command, if no requirement is given.
2010-08-31 14:51:15 +02:00
Jannis Leidel
2f44bcd392
Fixed issue #151 -- When running the install command, bail early if no requirement is given.
2010-08-31 03:01:03 +02:00
Carl Meyer
2249c100b1
nicer error for --user on pre-2.6 Pythons
2010-08-19 12:59:10 -04:00
Carl Meyer
285ff9eed6
fix missing InstallationError import
2010-08-19 12:58:48 -04:00
Ronny Pfannschmidt
8606eaff95
implement and test early error-out on setuptools for install --user --editable
2010-08-19 17:40:21 +02:00
Ronny Pfannschmidt
1e76e5abcc
merge "--user alias" to main
2010-08-19 16:24:34 +02:00
Ronny Pfannschmidt
2103c4ffcd
add a --user alias for --install-opt=--user
2010-08-18 23:59:33 +02:00
Hugo Lopes Tavares
0ccd5ebf97
using custom xmlrpclib.Transport (testability purposes)
2010-07-02 09:27:22 -03:00
Jannis Leidel
e80c387a26
Added support for mirrors as defined in PEP 381. This feature is disabled by default and will query the DNS entry of the main mirror index URL to get a list of mirrors. Optinally can be passed a list of mirrors instead.
2010-08-16 01:46:23 +02:00
Carl Meyer
eff68029e3
merge installcommand/finder subclass hooks
2010-06-04 11:20:35 -04:00
Hugo Lopes Tavares
26a1314d1d
some adapts to pep8
2010-06-03 17:40:45 -03:00
Ronny Pfannschmidt
d8b00e253b
add support for global distutils options
2010-05-30 14:39:11 +02:00
Hugo Lopes Tavares
d06c98dc6f
merged changes related to PEP 8 from hltbra's fork
2010-06-02 23:25:26 -03:00
Dave Abrahams
6c68932526
Hooks for ryppl. The following are now encapsulated in overridable methods:
...
1. Construction of the install command's package finder
2. Derivation of available versions from links
2010-05-27 19:27:13 -04:00
Dave Abrahams
4b2eedc50a
On Windows, .pth files must be saved in binary mode ('wb')
...
...because they are written by easy_install with Unix line
endings (\n) there and if we write DOS line endings (\r\n) as 'w'
does, our uninstall tests that check for complete rollback of
easy-install.pth fail.
2010-05-02 22:18:41 -04:00
Dave Abrahams
b32d6f4798
Use portable path manipulations for Windows portability
2010-04-24 03:06:42 -04:00
Alexandre Conrad
aaccedf26a
centralized clean up code in one place
2010-04-17 18:36:31 +02:00
Alexandre Conrad
627c3e7242
Remove build directories after commands. Fixes #57
2010-04-16 19:26:39 +02:00
Hugo Lopes Tavares
660253c20f
changed error to go to stderr
2010-04-15 19:19:31 -03:00
Hugo Lopes Tavares
8aa964194c
removed unused code
2010-04-15 16:09:01 -03:00
Carl Meyer
85fae257c2
Fix some pyflakes warnings. Thanks Simon Cross.
2010-04-15 11:59:55 -04:00
Simon Cross
baa49969fd
Add search for source folders if not downloading files (--no-download tests should now pass).
2010-04-15 15:27:00 +02:00
Simon Cross
4fba7f2f55
Add option to not download anything (and just use what was downloaded earlier.).
2010-04-15 14:03:36 +02:00
Simon Cross
83c099d8c9
Always make build_dir and src_dir absolute (fixes failing download with relative src folder test).
2010-04-15 13:16:11 +02:00
Carl Meyer
d793133780
support Debian/Ubuntu "dist-packages" in zip command. Thanks duckx. Fixes #80
2010-04-13 16:08:54 -04:00
Carl Meyer
96bb90d434
move logging setup earlier in main() to avoid raw prints; fixes #75
2010-03-09 16:31:03 -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
64360ffe9b
Change function name "translate_hits" to "transform_hits" for clarity.
2010-02-23 15:01:43 -06:00
Cody Soyland
7f709ba830
Do not print separate line for latest version if it is installed.
2010-02-22 18:20:19 -05:00
Cody Soyland
02085e8858
Use logger.indent instead of printing spaces.
2010-02-22 18:10:56 -05:00
Cody Soyland
d29756822a
Join query args with space instead of choosing first word.
2010-02-22 17:45:53 -05:00
Cody Soyland
7768c7865f
Replace print statements with logging.
2010-02-22 17:43:49 -05:00
Cody Soyland
9415e28449
Fix for cases in which terminal size cannot be determined.
2010-02-22 17:37:19 -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
4d8dffbdb1
preserve options from template reqs files: fixes #37
2009-12-12 17:26:28 -05:00
Ian Bicking
13a3083066
Fix for pip bundle and local files, from whit
2009-12-08 13:25:07 -06: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
3d32c196b5
Extract commands into their own modules; fix a few imports and dead functions that pyflakes found
2009-11-20 12:20:52 -06:00