1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

769 commits

Author SHA1 Message Date
Georgi Valkov 46a21751b8 add the base_parser argument to all Command instances 2012-11-10 15:34:53 +02:00
Georgi Valkov 8dbdf50863 add create_main_parser() and the '-V --version' option 2012-11-10 15:34:20 +02:00
Georgi Valkov 7427eca00b remove global command instances
Rework the way commands are defined, loaded and ran in pip:

 - Commands are instantiated on demand in pip.main().

 - A command 'registry' - mapping of command names to command classes in
   pip.commands.__init__.

 - Remove deferred command module loading.
2012-11-10 15:30:16 +02:00
Marcus Smith dff849ce27 existing install has priority over wheels 2012-11-03 22:10:58 -07:00
Marcus Smith 7ad52b423d link sort key as instance method; guard when link is InfLink 2012-11-03 21:35:56 -07:00
Paul Nasrat fad65326c8 Merge pull request #693 from hetmankp/develop
Added --root command line option to give functionality equivalent to distutils --root
2012-10-29 09:58:18 -07:00
Paul Moore 4b01b90df2 Give wheels priority over sdists when installing 2012-10-28 22:02:48 +00:00
Marcus Smith 1873e80f63 import check at 'pip wheel' command level is enough 2012-10-28 10:50:17 -07:00
Marcus Smith edbd5c291e don't ignore building pip/setuptools/distribute 2012-10-28 10:32:44 -07:00
Marcus Smith 7ece6f4e77 add --no-deps option to "pip wheel" 2012-10-27 21:21:35 -07:00
Daniel Holth 9087a6fe07 skip trying to build wheels for requirements found as wheels 2012-10-27 17:44:50 -04:00
Daniel Holth ed0c2391da allow pip wheel --use-wheel ... 2012-10-27 16:55:04 -04:00
Daniel Holth 137909107f remove 'import *' 2012-10-27 16:29:31 -04:00
Marcus Smith 57c19d3497 Merge pull request #19 from pfmoore/wheel_in_req
Allow --use-wheel in requirements files
2012-10-25 13:23:00 -07:00
Marcus Smith be12f79ab4 merge pypa/develop 2012-10-25 12:51:07 -07:00
Paul Nasrat 32f0be7a96 Merge pull request #702 from qwcode/link_sort2
put back finder link priority (with tests)
2012-10-24 23:53:39 -07:00
Paul Moore b7a88b8623 Allow --use-wheel in requirements files 2012-10-24 14:53:58 +01:00
Paul Nasrat f54f422e11 Merge pull request #677 from blaze33/develop
Explicitly ignore rel='download' links while looking for html pages.
2012-10-24 06:02:37 -07:00
Ben Rosser b4a3133ef8 Updated to upstream to make pull request build 2012-10-19 01:54:42 -04:00
Marcus Smith 403f8d53a5 --user installs work properly with --upgrade 2012-10-17 22:59:43 -07:00
Daniel Holth e0f353596f make sure bdist_wheel is available up front 2012-10-16 21:57:37 -04:00
Marcus Smith a0cd7b6991 use CommandError 2012-10-16 16:48:15 -07:00
Marcus Smith cdcdf459bc 'pip wheel' doesn't support py25 2012-10-16 16:39:56 -07:00
Marcus Smith 4bfc92ddba 'pip wheel' 2012-10-16 15:57:10 -07:00
Marcus Smith 6e481b1f9e Merge pull request #8 from pfmoore/wheel_install_platcheck
Add platform checks to wheel location code
2012-10-14 16:21:54 -07:00
Marcus Smith c770ad66db let installed version be it's own item 2012-10-13 23:03:09 -07:00
Paul Moore 50c21119e5 Add platform checks to wheel location code 2012-10-12 09:36:05 +01:00
Marcus Smith 74338676f5 Guard the chmod in case external_attr is 0. 2012-10-11 20:35:02 -07:00
Marcus Smith 758c3368e9 finder link priority 2012-10-10 21:49:29 -07:00
hetmankp 061954f29d Added --root command line option, works the same as for distutils 2012-10-08 14:49:30 +11:00
Jannis Leidel 40ec94fc8e Fixed the argument signature of two InstallationError instances. 2012-10-05 20:05:20 +02:00
Alex Grönholm 47af6d4094 Append / to the PyPI URL to reduce unnecessary redirects 2012-10-02 21:19:56 +03:00
Marcus Smith 2d3cd9d076 use the constructed exename 2012-10-02 07:48:54 -07:00
Daniel Holth aa5b33dbf4 experimental support for installing wheel archives 2012-10-01 22:50:24 -07:00
Maxime Rouyrre 6a483a3778 Update method description to match expected behaviour. 2012-10-02 03:33:29 +02:00
Paul Nasrat 60e181bf9e Merge pull request #674 from bergundy/develop
switch submodule init/update to a single line
2012-10-01 04:59:15 -07:00
Marcus Smith 134b5e3fd3 Merge pull request #683 from qwcode/link_sort
fix PackageFinder version sorting
2012-09-28 21:13:25 -07:00
Marc Abramowitz 4342328a6a Log URL that we're downloading from at info level (-v) rather than debug
level (-vv).
2012-09-28 17:14:31 -07:00
Marcus Smith 93bdb858d8 fix finder version sorting with Inf object 2012-09-25 07:56:09 -07:00
Marcus Smith 4ea13f474c Inf py3x compatibility and tests 2012-09-23 14:46:22 -07:00
Carl Meyer 28aeb03b08 Add dependencies information to 'show' command. 2012-09-21 11:15:24 -06:00
Marcus Smith e066d36de8 don't add local dirs that are not findlinks to url list 2012-09-16 22:41:51 -07:00
Marcus Smith 534037906f file:// urls could have hash fragments 2012-09-16 17:42:54 -07:00
Marcus Smith af7bd9ccdb index file:// urls that are dirs should not have listdir run against them 2012-09-16 17:41:27 -07:00
Maxime Rouyrre 0bb9c31aea Explicitly ignore rel='download' links while looking for html pages.
This way we avoid requesting archive headers just to see they're not
HTML pages.
2012-09-14 17:27:58 +02:00
Roey Berman 297d9ffca0 switch submodule init/update to a single line 2012-09-13 04:01:28 +03:00
Carl Meyer 8c9a241fb2 Rename 'status' command 'show'. 2012-09-12 10:39:19 -06:00
Rafael Caricio 85bbe26f64 Make optional the full file listing. 2012-09-11 17:44:42 -03:00
Rafael Caricio 71286afc4d Enable listing all the installed files. 2012-09-11 16:35:03 -03:00
Carl Meyer f2df551094 Merge pull request #671 from pfmoore/develop
Fix for issue 670 (unorderable Link types under Python 3)
2012-09-10 18:20:56 -07:00
Paul Moore 1dee479184 Code changes for fix to issue 670 2012-09-10 21:04:00 +01:00
Andrey Bulgakov a4da43ada4 _get_md5_from_file -> _get_hash_from_file 2012-09-10 02:57:36 -06:00
andreiko aa2b3522f6 fixed typo: md5_hash -> hash 2012-09-10 02:57:36 -06:00
Andrey Bulgakov 8d194bfcfc check if file was already downloaded
In --download mode skip downloading when file already exists in target directory
2012-09-10 02:57:36 -06:00
Carl Meyer 3c7509d9e0 Merge pull request #659 from lanxenet/patch-1
Fix bug with ;-terminated PATHEXT on Windows.
2012-09-10 01:11:53 -07:00
Carl Meyer 895bfee767 Allow --no-index and --find-links relative path in reqs file. 2012-09-10 00:48:48 -06:00
Paul Moore 04f01f227e Support local file paths in --find-links arguments 2012-09-09 21:15:32 +01:00
Carl Meyer 6d5a9e2fb2 Minor cleanup. 2012-09-08 15:31:59 -06:00
Rafael Caricio 63459a2707 Little refactory. 2012-09-07 18:18:48 -04:00
Rafael Caricio 16f76e24bd Only print some files. 2012-09-07 17:44:49 -04:00
Rafael Caricio b78dff8d2c Refactory and support to package name in any case. 2012-09-07 17:17:04 -04:00
Rafael Caricio 44470d1bd0 Remove blank spaces in the end of the line. 2012-09-07 16:01:34 -04:00
Rafael Caricio 76bbecd42e Added the patch code sent by @vbabiy. 2012-09-07 15:56:00 -04:00
Carl Meyer 931408b965 Bump develop branch to a post-release version. 2012-09-07 09:48:57 -06:00
Jannis Leidel ac2c3fed39 Bumped up the version a notch and updated changelog. 2012-09-06 10:30:13 +02:00
Garry Polley 0d27d5aa0a Fixing import error for tempfile
A change was made to add extra logging whenever pip log files cannot be added. 

Here is the changeset that caused the issue:  8ebc7a3160 (pip)/basecommand.py
2012-09-05 15:55:34 -05:00
enoch 5230dd2016 修复配置PATHEXT最后一个字符如果是分号的情况。 2012-09-05 18:04:09 +08:00
Marcus Smith 99e28f072b just log warning and return when no paths, don't raise 2012-09-03 10:55:10 -07:00
Jannis Leidel 7760a01ddc Simplified get_prog to not trigger any exception. 2012-09-01 21:14:07 +02:00
Jannis Leidel 7492f9c23a Safeguard against sys.argv not existing. 2012-09-01 21:06:29 +02:00
Jannis Leidel 5c3f415f23 Trying to fix a werid test failure. 2012-09-01 20:58:39 +02:00
Jannis Leidel 1447d7d2ac Use our own terminal size util. 2012-09-01 20:36:35 +02:00
Jannis Leidel 1525a63b57 Added a get_prog util to correctly show the name of the program when using python -m pip.
Also show the full path in the missing command error message.
2012-09-01 20:36:31 +02:00
Jannis Leidel 95ff6fc32b Moved __main__.py to correct location. 2012-09-01 20:36:27 +02:00
Jannis Leidel d9599ec6df Added a pip.__version__ variable that is used in the setup.py and the docs' conf.py. 2012-09-01 20:36:21 +02:00
Jannis Leidel 0fdab685c9 Merge branch 'develop' of github.com:pypa/pip into develop 2012-09-01 18:41:06 +02:00
Jannis Leidel 7edd31d41b build/ IS a good name. 2012-09-01 16:55:20 +02:00
Jannis Leidel ad254bc382 Merge pull request #436 from kennethreitz/feature/eqdev
Only warn for mis-versioned packages.
2012-09-01 07:25:25 -07:00
Jannis Leidel 13cfa64ae7 Merge pull request #600 from mjtamlyn/patch-1
Minor tweak to handle not passing options to parse_requirements.
2012-09-01 07:09:54 -07:00
Jannis Leidel b183a32741 Merge pull request #646 from qwcode/issue_638
fix for #638  (__pycache__ file removal)
2012-08-27 01:15:41 -07:00
Marcus Smith 0569324855 handle __pycache__ file removal 2012-08-18 15:26:17 -07:00
Phil Freo 848a3b4f26 Fix typos in documentation 2012-08-18 17:18:44 -03:00
MiCHiLU 4d955d56af Fix issue #632 - IOError in zip command with --path option 2012-08-13 13:02:16 +09:00
Marcus Smith 90b983f08d workaround for pip issue #626 2012-08-04 18:49:29 -07:00
Marcus Smith 5a1c6093b6 pypy home scheme fix 2012-08-04 18:48:16 -07:00
Paul Nasrat fa8c738b30 Merge pull request #612 from qwcode/issue_420
test enhancements to pull #599 (which fixes issue #420)
2012-07-29 22:20:31 -07:00
Paul Nasrat d1a7ea2587 Issue #597 pypy hashlib compat.
Hash attribute name is a cpython implementation detail and not in the
PEP.

Use digest_size for some form of validation as that is all we can rely
on.

TESTED 2.7, 3.3, pypy 1.9
2012-07-29 11:37:56 +01:00
Phil Whelan 888ae41ccf stop get_mirrors returning 216k invalid hostname from Japan 2012-07-18 15:05:23 +09:00
Marc Tamlyn 5b6d24f1be Minor tweak to handle not passing options to parse_requirements.
Options is supposed to be an optional argument, this makes it optional.
2012-07-13 18:04:27 +02:00
Clay McClure 723500188d Remove temp build dir even if the req is not installed (fixes #420) 2012-07-12 22:53:16 -04:00
Clay McClure 4807b90244 Correct a comment 2012-07-12 16:51:13 -04:00
Carl Meyer 15d2944f02 Merge branch develop into feature/issue-355-safe-uninstall 2012-07-09 22:01:25 -06:00
Marcus Smith 8f566d7a86 smarter pip.util.egg_link_path 2012-07-08 16:03:12 -07:00
Piet Delport 104f961352 Ignore top_level.txt if installed-files.txt is available. 2012-07-08 12:32:11 +02:00
Donald Stufft 5edbdc34f3 Merge branch 'develop' into multiple-hashers 2012-07-04 13:32:57 -04:00
Paul Nasrat 5562a6bb1f Merge pull request #584 from msabramo/issue-11
Make _run_setup_py magic use pkg_resources.iter_entry_points
2012-07-02 01:47:47 -07:00
Paul Nasrat 7c080e2f38 Fix failing bzr vcs test 2012-07-01 11:47:23 +01:00
Paul Nasrat 1aace2a7ab Merge branch 'develop' of https://github.com/orutherfurd/pip into 552-bzr-33-compat 2012-07-01 11:04:20 +01:00
Paul Nasrat d82816c128 Merge pull request #585 from qwcode/userscheme_pt6
--user fixes part 6 #573
2012-06-30 10:38:06 -07:00
Marcus Smith 0e3c03f958 raise InstallationError when UninstallPathSet has no paths 2012-06-25 22:35:27 -07:00
Marcus Smith 0708447bba don't --user install in --system-site-packages virtualenvs with conflict 2012-06-23 08:35:22 -07:00
Marc Abramowitz ea109a0bd9 Make magic use pkg_resources.iter_entry_points instead of relying on
egg_info.iter_entry_points, which might not be there if someone
redefines egg_info (like the setup.py for pyobjc-core does)

Fixes GH-11
2012-06-21 14:25:19 -07:00
Donald Stufft c9ada2de47 Merge branch 'develop' into multiple-hashers
Conflicts:
	pip/backwardcompat.py
	pip/download.py
2012-06-21 02:46:20 -04:00
Your Name 5d9c7e56f3 Re-add import shutil that got lost in merge 2012-06-19 19:10:09 -04:00
Your Name 18f2e2cbe5 Merged with upstream 2012-06-19 19:06:27 -04:00
unknown 8ebc7a3160 Updated basecommand.py such that writing to the log file doesn't fail. If
permission is denied for writing in the specified log file the message
will be written to a temporary one.
2012-06-16 18:28:13 +03:00
lepture 94af30dc68 fix #533 . quite and recursive on submodule checkout 2012-06-13 23:27:38 +02:00
lepture 4e264664e2 fix on git repo. if a repo contains submodules, checkout submodules 2012-06-13 23:27:38 +02: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
Ollie Rutherfurd 80a1b9edfc non_hierarchical was dropped at the same time as uses_fragment (#552) 2012-06-07 12:35:41 -04:00
Ollie Rutherfurd ed09b444bd fix compatability w/3.3 & 2.7.4 & bazaar (#552) 2012-06-07 11:34:27 -04:00
Carl Meyer c16eee465d Merge remote-tracking branch 'TC01/develop' into develop 2012-06-06 08:21:39 -06:00
Carl Meyer 4b68fa2cf5 Remove backwards-compatibility shims for Python 2.4. 2012-06-06 08:21:16 -06:00
Marcus Smith 2e1959abfb don't allow --user installs in no-global virtualenvs 2012-06-05 20:01:35 -07:00
Ben Rosser b251709ac1 Re-added try/except around src_prefix 2012-06-05 21:27:36 -04:00
Carl Meyer c92190884d Merge pull request #563 from msabramo/issue-556-2
Workaround for GH-556 by completely removing pkgutil stuff and replacing with a vanilla import at the top of the file.
2012-06-05 08:13:14 -07:00
Ben Rosser b158838c19 Fixes to build and src dir locations 2012-06-04 18:23:31 -04:00
Ben Rosser 070c958025 Revert "Fixes to src and build dir locations"
This reverts commit 20f8ce289d.
2012-06-04 18:16:19 -04:00
Ben Rosser 20f8ce289d Fixes to src and build dir locations
Moved src_dir back to cwd for now. build_dir is still created in the
system's temporary dir (tempfile.gettempdir()), but always as
"pip-build".
2012-06-04 18:11:53 -04:00
Marc Abramowitz 56dc8360f4 Workaround for GH-556 by completely removing pkgutil stuff and replacing
with a vanilla import at the top of the file.
2012-06-04 13:00:44 -07:00
Paul Nasrat a8e68b6858 Revert "Fix windows CI build tests."
This reverts commit 5004c62bb7.

Doesn't fix win32. Needs more work
2012-06-03 16:16:31 +01:00
Paul Nasrat 5004c62bb7 Fix windows CI build tests.
On windows we can't assume os.getcwd returns url friendly format. Use
urllib pathname2url.
2012-06-03 14:40:59 +01:00
Paul Nasrat 32fad40bd5 Merge pull request #555 from orutherfurd/develop
Python >= 3.3a4 handles url fragments automatically
2012-06-01 15:31:31 -07:00
Ollie Rutherfurd 2cfd872fec Python >= 3.3a4 handles url fragments automatically 2012-06-01 18:17:23 -04:00
Marc Abramowitz 239db6e9eb Make the unknown VCS error message generate its text from the actual
list of known VCSs rather than hard-coding the ones supported now.
2012-06-01 15:11:58 -07:00
Paul Nasrat 8bdd852e5d Merge pull request #516 from TC01/develop
Temporary build and src directories no longer created in cwd/pwd (bugs #339, #381)
2012-05-31 14:57:51 -07:00
Paul Nasrat 62a1b3065c Fix error message for pip install -e path
When setup.py missing give appropriate error message.

Fixes issue #546
2012-05-31 13:49:19 +01:00
Ben Rosser 51051964df Minor fixes 2012-05-30 11:43:55 -04:00
Donald Stufft de265f44d4 Issue a warning for an unsuported hash type and catch TypeError as well 2012-05-26 18:39:47 -04:00
Donald Stufft ed234c905e fix a typo 2012-05-26 17:56:26 -04:00
Donald Stufft 84eeeb33ad remove md5 from backwards compat 2012-05-26 17:56:26 -04:00
Donald Stufft b4737a4d13 modify the hashing functions so that they accept any of the guarenteed hashers 2012-05-26 17:56:26 -04:00
Carl Meyer fcd79d3cbc Merge pull request #500 from nickstenning/feature/local-extras
Add support for specifying extras with local editable paths
2012-05-24 07:55:24 -07:00
Kamal Bin Mustafa becfb83e36 do write installed-files.txt if using install --egg 2012-05-24 07:36:14 +08:00
Ben Rosser 3a23763dfe Added migration path from ~/.pip to ~/.config/pip 2012-05-23 15:26:01 -04:00
Nick Stenning df201a4d03 Add support for specifying extras with local editable paths.
- allow parse_editable(...) to return an extras_override tuple
- update InstallRequirement.from_editable to use extras_override
- add a bunch of tests for parse_editable
2012-05-23 17:08:38 +01:00
Ben Rosser fa9cc7c0f7 Merged with upstream 2012-05-22 08:23:13 -04:00
Ben Rosser 882227a0e9 Switched to use XDG_CONFIG_DIR environment variable if possible (default to ~/.config if not) 2012-05-21 22:37:46 -04:00
Ben Rosser 5442218c6d Fixed commit #1 to actually work 2012-05-21 22:14:25 -04:00
Ben Rosser 390917d3a5 Moved configuration and logging to .config for XDG compliance 2012-05-21 22:10:50 -04:00
Ben Rosser f2bd45a936 Removed the ~/.config changes from devel branch, will put into a different branch later 2012-05-21 22:04:15 -04:00
Kamal Bin Mustafa 93cd6b1620 add --egg option to opt out --single-version-externally-managed 2012-05-20 11:18:36 +08:00
Paul Nasrat b5e7cdecc1 Merge pull request #465 from gvalkov/compact-optformat
Use a prettier/less verbose help formatter
2012-05-14 16:32:46 -07:00
Georgi Valkov 0371ddb86f Style and consistency fixes as suggested by reviewers 2012-05-15 00:37:00 +03:00
Jeff Dairiki ec38cb7600 Bug fix: do not mutate list while iterating over it. 2012-05-14 14:27:03 -07:00
Paul Nasrat 8bc587fdc7 Merge pull request #372 from sethwoodworth/develop
issue #321: provides except block for when current working directory fail
2012-05-13 14:55:47 -07:00
Paul Nasrat 3e1e131da0 Merge pull request #383 from apatrushev/develop
Correct windows config location to match docs fixes Issue #82
2012-05-13 14:46:35 -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
Paul Nasrat 425d564395 Merge pull request #466 from gvalkov/pip-error-base
All pip exceptions inherit from PipError
2012-05-13 13:26:33 -07:00
Bernardo B. Marques 346c00dc9e refactoring "values" function in "Requirements" class 2012-05-13 13:17:30 -07:00
Paul Nasrat b98d6bc75b Merge pull request #490 from jstasiak/develop
Fix unit decimal prefix (KB->kB)
2012-05-02 12:55:48 -07:00
Ben Rosser 2c2f810f1b Fix/hack: after creating the temp dirs, delete them and save their names so pip can create them properly later 2012-04-23 17:35:11 -04:00
Ben Rosser 5f1f1a1699 Removed some redundancy with the new temporary folders 2012-04-22 22:25:05 -04:00
Ben Rosser 667ace7224 Use tempfile for temporary pip directories 2012-04-22 21:34:58 -04:00
Ben Rosser b6e3ccdef8 Use ~/.config/pip to store configuration/logging instead of ~/.pip 2012-04-22 21:29:25 -04:00
Carl Meyer 58ad223871 Fix issue #510 - prevent sdist filename matches on partial project names. Thanks casevh for the report. 2012-04-16 17:27:47 -06:00
Carl Meyer d382a36cf6 Remove the poorly-named Link.url_fragment property. 2012-04-16 16:05:21 -06:00
Carl Meyer 0c05413b6f Merge pull request #504 from wking/develop
Preserve the query portion of URL-type InstallRequirement URLs. Thanks W. Trevor King.
2012-04-16 14:19:50 -07:00
Carl Meyer c33e700551 Merge branch 'issue-58-origin-less-git' into develop 2012-04-13 21:25:37 -06:00
Carl Meyer beb30709e8 Revert unneeded added imports. 2012-04-13 21:16:43 -06:00
W. Trevor King c3d51bd891 Preserve the query portion of URL-type InstallRequirement URLs.
With this patch, install commands like:

  pip install 'http://foo.com/?p=bar.git;a=snapshot;h=v0.3;sf=tgz'

will work as expected.
2012-04-05 16:55:29 -04:00
jstasiak eb8a19ab6f Fix unit decimal prefix (KB->kB) 2012-03-22 14:09:34 +11:00
Carl Meyer 19e1eab533 Fixed #487 - don't check for best-version-already-installed with explicit-URL requirements when upgrading. 2012-03-19 20:46:47 -06:00
Rory McCann 1fe5d2099d refactor. move the exception handlying back to the caller, rather than rely on it 2012-03-19 19:55:39 +00:00
Rory McCann 9361d336ba oops forgot an import 2012-03-19 19:51:43 +00:00
Rory McCann 68a208da29 more compatible exception handlying format from @carljm 2012-03-19 19:50:33 +00:00
Rory McCann 8df54c9009 if there is a git repo without an origin, then don't fall over. cf. issue #58 2012-03-19 18:58:56 +00: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
Carl Meyer f887aa6adf Fix upgrade of VCS requirement with otherwise nonexistent egg. Fixes #486. 2012-03-16 00:40:58 -07:00
Carl Meyer 4b6872dfbb No .format() formatting yet. 2012-03-13 23:55:17 -07:00
Thomas Fenzl 2c0ac186d3 fixes #427 in own branch 2012-03-13 15:38:47 -07: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 fb38f4709a All pip exceptions inherit from PipError 2012-03-02 01:51:13 +02:00
Georgi Valkov 3534ac56f0 Use a prettier/less verbose help formatter
* Prevents excessive wrapping (respects $COLUMNS if set)
 * More control over the look of pip's option handling
 * '-d DIR, --download=DIR' becomes '-d, --download <DIR>'
2012-03-02 01:46:22 +02:00
Georgi Valkov f77a6de500 Move pip.call_subprocess to pip.util.call_subprocess 2012-03-02 01:12:36 +02:00
dengzhp ccad8dae62 use dummy_threading when the threading module is not present. 2012-02-13 14:40:28 +08:00
Carl Meyer 8aa4c80f8a Merge branch 'develop' into fix-issue-326-UnicodeDecodeError 2012-02-07 12:17:35 -07: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
Carl Meyer a443bc12f3 Merge branch 'subversion-auth' into develop 2012-02-02 10:01:39 -07:00
Qiangning Hong c2e6f87ea8 support Python 3 2012-02-02 15:25:30 +08:00
Qiangning Hong ba95ea9499 support Python 2.4 2012-02-02 15:05:48 +08:00
Carl Meyer a153b387a5 Merge branch 'deep-download' into develop 2012-02-01 10:25:13 -07:00
Antti Kaihola d3af622929 Show the subdirectory where a VCS operation failed (helps in debugging issue #58) 2012-02-01 14:52:32 +02:00
Qiangning Hong fa773cdec6 clean up temporary source code 2012-02-01 14:25:06 +08:00
Qiangning Hong 363cc60154 let subversion export support auth and revision 2012-01-31 18:56:47 +08:00
Qiangning Hong 5df6c3aede make subversion understand http://username:password@svn.example.com/ url 2012-01-31 18:42:53 +08:00
Qiangning Hong 84a3f4ce69 download dependencies. (breaks existing test cases) 2012-01-31 17:59:40 +08: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
Kenneth Reitz 15bf408295 Only warn for mis-versioned packages.
Allows Package==dev in requirements.
2012-01-19 13:09:54 -05:00
Qiangning Hong 188b012502 use svn info --xml to get revision 2012-01-19 00:26:38 +08:00
Ross Brattain e470458b64 pip/download.py: use proxy for https
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2012-01-02 12:14:32 -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
Marc Abramowitz efe449576e Encapsulate write/buffer Python 2 vs. Python 3 check into a utility method (fwrite) in pip.backwardcompat.
Refs https://github.com/pypa/pip/pull/374#r285670
2011-12-27 09:26:33 -08:00
Carl Meyer 3b2b2ce49e Merge pull request #407 from nolar/develop
gh-406 - improper relative urls resolution
2011-12-16 09:22:10 -08:00
Rene Dudfield 885dc01a3b Yeah ('.zip') is not a tuple. doh. Applied wart remover. 2011-12-16 17:10:03 +01:00
Sergey Vasilyev 6bed8b23f3 gh-406 - improper relative urls resolution 2011-12-16 13:15:25 +04:00
Rene Dudfield c8d11dee87 For issue #57 pip wrongly selects a macosx binary .zip file
Instead of a source file it downloads a binary macosx .zip file
which contains a binary installer.
2011-12-15 17:54:01 +01:00
Carl Meyer 128f15cd99 Removed unused imports and trailing whitespace. 2011-12-12 02:02:14 -07:00
Carl Meyer 1134ca2552 Removed unused argument to commands. 2011-12-12 02:02:01 -07:00
Olivier Girardot d1b787f961 fixes #310 and allows for versions like -py3 instead of -py2.6 or -py3.0 2011-12-12 00:07:25 -07:00
Olivier Girardot 3b320cbf50 merging from bitbucket/callahad patch for #182 2011-12-12 00:07:12 -07:00
Olivier Girardot 2631db5083 removing uninstall feature for extras dependency 2011-12-09 22:38:49 +01:00
Matt Maker ef9ee9a3a1 Extend pip's requirements parsing to recognize and install/uninstall declared "Extras". 2011-12-09 22:03:13 +01:00
David Evans 7a889d800c Fix for subtle config override bug
Config keys should be normalized (i.e., have underscores replaced with
dashes) *before* the config dictionaries are merged.

Otherwise, if you set a value in a config file and via an environment
variable both the dash separated key (from the config file) and the
underscore separated key (from the environment variable) end up in the
config dictionary. Usually this doesn't matter because the latter key
comes after the former when the dictionary is iterated over. But in
cases where the two config keys hash to the same value module the size
of the dictionary, the order is reversed and the wrong value takes
precedance.

For instance with 'index-url' there's no problem:

    >>> repr({'index-url': 1, 'index_url': 2})
    "{'index-url': 1, 'index_url': 2}"

But with 'no-index', the value from the config file overwrites the
value from the environment variable:

    >>> repr({'no-index': 1, 'no_index': 2})
    "{'no_index': 2, 'no-index': 1}"
2011-12-07 16:47:08 +00: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
Anton Patrushev 4b934a14b0 remove special case for user_dir on win32 platform. fixes #82 2011-11-07 17:26:46 +06:00
Seth Woodworth 533247cc9a wrapping just the os.getcwd() in the try block 2011-10-30 20:21:06 -04:00
Marc Abramowitz 1db8285dd4 Revise b154c82 so that it works with Python 2 2011-10-29 08:31:35 -07:00
Marc Abramowitz b154c827e7 Modify Logger.log so that it can output UTF-8 encoded messages. 2011-10-25 21:59:45 -07:00
Marc Abramowitz 412daad2e2 Modify console_to_str to handle non-ASCII (UTF-8) input. 2011-10-25 21:56:36 -07: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 be591ea084 Merge pull request #293 from lebedov/develop
Directly extract symbolic links rather than their targets (#288).
2011-10-22 22:56:17 -07:00
Carl Meyer cdec82b5e6 Merge branch 'fix-issue-49' into develop 2011-10-22 23:50:19 -06:00
Carl Meyer 417013226b Avoid double-calling find_requirement for the same requirement. 2011-10-22 23:46:14 -06:00
Seth Woodworth 47b9a08df2 issue #321: provides except block for when current working directory fails 2011-10-18 15:55:37 -04:00
Hugo Lopes Tavares 04838268e1 Fix issue #366 - pip throws IndexError when it calls scraped_rel_links 2011-10-14 21:39:27 -03:00
Paul van der Linden 8d67101b6e path exists action 2011-10-04 16:10:46 +02:00
Paul van der Linden ac94f606c0 fix no-input 2011-10-04 16:08:35 +02: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 2487ef9c21 Eliminate redundancy in logic 2011-08-25 14:24:07 -04: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 0ece434f81 Changed magic status code numbers to named ones 2011-08-02 14:03:35 -04: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
Jannis Leidel 4cac29036f Handle exception on Python 3 correctly. Fixed #314. 2011-07-16 16:17:24 +02:00
Jannis Leidel f29445b045 Strip = character from --editable lines in requirements files. Fixes #320. 2011-07-16 16:15:41 +02:00
Carl Meyer 490fa217f0 Merge pull request #299 from pnasrat/297-handle-content-encoding
Fix #297 adding deflate and gzip handling
2011-06-04 20:07:48 -07:00
Paul Nasrat e33be61bc3 Fix #297 adding deflate and gzip handling
Tested on py24, py27 and py32 and the failing tests on 3.2 go away, the content
we're getting back is still gzipped so this is a valid manual test.  Add
BytesIO to backwardcompat, fallingback to StringIO on py2x.

I'd like to get the CI build green then comeback and improve the testing around
this.  I've not added tests at the moment, but want to come back to that. There is
quite a lot of complexity around downloads split between pip.index and
pip.download.
2011-06-03 15:26:21 +01:00
Paul Nasrat 053cda7abb Fix for #295 install -I when package installed
Add simple test and fix to ensure install() runs with -I.

Tests run clean on 2.4, 2.7, 3.2
2011-06-02 13:58:56 +01:00
Lev Givon 7a9242310c Directly extract symbolic links rather than their targets (#288). 2011-05-29 17:19:19 -04:00
Carl Meyer 7398a96a14 Merge branch 'develop' into issue283-cant-find-tag-pointing-to-same-commit-as-origin-master 2011-05-18 10:34:58 -05:00
Carl Meyer 7327177dbb Removed some unused imports. 2011-05-18 10:27:15 -05:00
Carl Meyer 87dd1579a2 Removed broken and no-longer-useful -E and PIP_RESPECT_VIRTUALENV options. 2011-05-18 10:27:14 -05:00
Hugo Lopes Tavares ed7360a735 Fixed issue #283 and did some refactorings on git vcs backend 2011-05-15 13:05:14 -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 3b4f620566 Merge branch 'launchpad' of https://github.com/pnasrat/pip into develop 2011-05-03 21:56:25 +01:00
Bradley Ayers 892fd54b73 Fixed bug introduced in #273 2011-04-29 11:40:28 +10:00
Carl Meyer 55026b27cf Merged pull request #275 from bradleyayers/develop.
Fixed issue #273
2011-04-28 16:14:00 -07:00
Bradley Ayers 439e1ed6f8 * Used a more pythonic approach to buffered file reading
* Alphabetised standard library imports
* Made some minor PEP8 compliance changes
* Fixed issue #273
2011-04-29 09:04:03 +10: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
Carl Meyer 174a22feff Merged pull request #268 from pnasrat/issue-233-find_command-pathext.
Improve unittests to fix build failure
2011-04-26 07:51:10 -07: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
Dan Sully f73385adc5 Allow requirements.txt URLs to have egg= definitions. 2011-04-25 18:16:57 +02:00
Jannis Leidel 98947e0016 Merged pull request #265 from pnasrat/issue-233-find_command-pathext.
Correct handling of default pathext case
2011-04-25 09:10:06 -07:00
Bradley Ayers 6fa2c23d92 Fixed bug #266 and corrected some minor coding style problems nearby. 2011-04-24 21:03:49 +10: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
Paul Nasrat 6061831c88 Fix launchpad urls
Fixes issue #36 by supporting launchpad urls.

Functionally tested

python pip/runner.py install -e bzr+lp:ijson#egg=ijson
Obtaining ijson from bzr+lp:ijson#egg=ijson
  Checking out lp:ijson to ./src/ijson
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
  Running setup.py egg_info for package ijson
Installing collected packages: ijson
  Running setup.py develop for ijson
    install_dir /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
    Creating /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ijson.egg-link (link to .)
    Adding ijson 0.8.0 to easy-install.pth file
    error: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/easy-install.pth: Permission denied
    Complete output from command /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python -c "import setuptools; __file__='/Users/pnasrat/Development/pip/src/ijson/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
    running develop

install_dir /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
running egg_info
writing ijson.egg-info/PKG-INFO
writing top-level names to ijson.egg-info/top_level.txt
writing dependency_links to ijson.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'ijson.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'ijson.egg-info/SOURCES.txt'
running build_ext

Creating /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ijson.egg-link (link to .)
Adding ijson 0.8.0 to easy-install.pth file
2011-04-19 10:59:06 +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 bb1d9fe772 Handle KeyboardInterrupt in basecommand
Manually tested:

python pip/runner.py install --no-install django
Downloading/unpacking django
  Downloading Django-1.3.tar.gz (6.5Mb): 2.6Mb downloaded
Operation cancelled by user
Storing complete log in /Users/pnasrat/.pip/pip.log
2011-04-17 02:26:00 +08:00
Paul Nasrat 1691ee3855 Use pypi query list to support multiple cli searches Issue #44 2011-04-17 01:02:57 +08:00
Paul Nasrat e25ae70333 Fix svn+svn protocol issue #252 2011-04-16 19:27:52 +08:00
Jannis Leidel 350b2ad1fd Merge branch 'master' of github.com:pypa/pip
Conflicts:
	docs/conf.py
	pip/__init__.py
	setup.py
2011-04-04 15:37:04 +02:00
Jannis Leidel a778647b22 Added build-installer script to build install-pip.py script, a standalone version of pip that installs itself. Also updated build-standalone script to use the new packager contrib tool. 2011-04-04 13:52:27 +02:00
Carl Meyer d4e8f6785e Add support for Python 2.4 to Windows rmtree_errorhandler. 2011-03-23 00:33:32 -04:00
Alex Grönholm 1fdbce0685 Use the detected console encoding instead of utf-8 for decoding
console output
2011-03-23 01:24:25 +02: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
Carl Meyer 651e1af613 Fixed #237 - syntax error on setup.py using DOS line endings, on Python 2.6 and previous. 2011-03-21 21:51:23 -04:00
Carl Meyer a6181add40 Remove nonexistent name from an __all__. 2011-03-20 11:40:22 -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
Carl Meyer f903eb0dd0 Merged in python3 branch. 2011-03-19 15:04:30 -04:00
Carl Meyer 98bdf0e684 Fixed circular import under Python 2.4. 2011-03-18 23:17:35 -04:00
Carl Meyer d0b8178f5c Added clarifying comments to hexadecimal file modes. 2011-03-18 20:31:05 -04:00
Vinay Sajip 680b5dfda0 Port to Python3 2011-03-15 15:49:48 -04:00
Alex Morega 375a293a11 show download progress only when writing to a TTY 2011-03-15 11:05:54 -04:00
Alex Morega 0236a47f0a make sure paths found by find_command are files 2011-03-14 18:07:12 -04:00
Carl Meyer 0d60e37273 Added workaround for broken setuptools on Debian/Ubuntu; fixes 'pip uninstall' outside of venv for users of packaged setuptools on those platforms. 2011-03-14 16:45:47 -04:00
Hugo Lopes Tavares 32defae98a merged with ianb`s repo 2011-02-13 16:41:06 -02:00
Carl Meyer 476206b014 Fixed #14 - direct-URL packages now uninstall-before-upgrade. Thanks Oliver Tonnhofer. 2011-02-13 03:46:56 -05:00
Carl Meyer 72b0335665 Merge. 2011-02-13 03:13:21 -05:00
Oliver Tonnhofer 2e1b880d1d fix uninstall-on-upgrade issues when installing from files/URLs
req_to_install.req is only set after unpacking the package. repeat
.check_if_exist and set .conflicts_with after unpack

closes #14
2011-02-12 11:48:03 +01:00
Hugo Lopes Tavares dc765845c0 removed unused imports and unused vars 2011-02-12 00:47:31 -02:00
Jon Parise 39c264a526 Parse 'Foo-1.2' into ('Foo','1.2') instead of ('Foo','-1.2').
Previously, the dash was being included in the second match group.
2011-02-03 16:37:29 -08:00
Kelsey Hightower bc655437d6 Replace stdlib shutil.rmtree with pip.util.rmtree -- contains a rmtree that fixes a few issues on Windows. 2011-01-30 23:09:50 -05:00
Jannis Leidel f3cc57519d Also use the project name for editable Git URLs when using freeze. 2011-01-23 13:02:04 +01:00
Jannis Leidel 1e22c0adb5 Automated merge with https://bitbucket.org/patjenk/pip/ 2011-01-23 11:52:46 +01:00
Jannis Leidel e5c1c4d759 Added check_rev_options in update() to add missing origin, thanks hedberg. 2011-01-23 11:52:25 +01:00
Patrick Jenkins 97bac57539 Accounting for special cases in mercurial tags and branches. "Tip" is a special mercurial tag that denotes the most recent revision of a branch. "Default" is a special mercurial branch that denotes that no branch has been specified. 2011-01-23 06:28:07 +00:00
Igor Sobreira d191a3ebbf fixing #178 -- install packages from requirements file in the same order they are listed 2011-01-04 03:05:10 -02:00
Igor Sobreira 0c546e3e74 fixing #163 -- don't get cofused if 'dev' is used in an editable package name 2010-12-09 00:34:14 -02:00
Ian Bicking bd898f4531 Automated merge with http://bitbucket.org/pwaller/pip/ 2010-11-29 11:58:35 -06:00
Jannis Leidel 5b657e681d Fix #10 -- Allow using requirements from version control as sources for non-editable installations. 2010-11-22 20:34:31 +01:00
Jannis Leidel 4d98a308ec Completely use our rmtree instead of shutil.rmtree direct. 2010-11-22 20:32:14 +01:00
Peter Waller f81822dc4b Prevent 'pip bundle' from trying to copy the package to the build-bundle twice. 2010-11-22 17:39:53 +01:00
Jannis Leidel b2ebc60cd9 Another tweak to fix #32, #150 and #161. Thanks Hugo for reminding me about #150. 2010-11-21 17:43:26 +01:00
Hugo Lopes Tavares ced226c246 added fix to mac os x + virtualenv - and fixed test_basic.py to install distribute when using --user option 2010-11-21 13:27:37 -02:00
Jannis Leidel 6195ab6031 Another try at fixing #32 and #161. Use git fetch instead of git pull (which fetches and merges), before checking out the wanted commmit. 2010-11-20 19:44:08 +01:00
Jannis Leidel 2e4b4467b7 Added git+https scheme. 2010-11-05 21:24:17 +01:00
Hugo Lopes Tavares 50ef6531d9 fixup: always remove the temp build dir 2010-09-13 02:21:49 -03: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
Jannis Leidel d921b1dc55 Also bail in the uninstall command, if no requirement is given. 2010-08-31 14:51:15 +02:00
Jannis Leidel 40c153d084 If a subcommand can't be found, try to find it. 2010-08-31 14:48:58 +02:00
Jannis Leidel 4d33521822 Added option to disable prompting for input. Also added ability to interactively ask for username and/or password in case a request requires authentication. 2010-08-31 13:08:57 +02:00
Jannis Leidel 20da952052 Fixed retrieving the content type for Python 2.4. 2010-08-31 13:05:10 +02:00
Jannis Leidel 37aa31c9f9 Raise InstallationError if local requirements file could not be found. 2010-08-31 03:01:39 +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
Jannis Leidel a5785e066f Fixed typo in main command line parser. 2010-08-31 02:59:23 +02:00
Jannis Leidel 1cd231e54a Fixed issue #157 - use urllib2 for content type detection. 2010-08-31 02:17:59 +02:00
Jannis Leidel b9f76f2355 Make sure we can also pass a Request instance to the URL helper. 2010-08-31 01:36:10 +02:00
Jannis Leidel ee2949a97c Added an URL opening helper that handles proxies and basic auth. 2010-08-30 23:53:33 +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
Hugo Lopes Tavares f92b5e5713 removed one line after and before class definition to make pep8 checker happy 2010-08-19 10:35:46 -03:00
Ronny Pfannschmidt 2103c4ffcd add a --user alias for --install-opt=--user 2010-08-18 23:59:33 +02:00
Ronny Pfannschmidt e1be75f194 support install/global options for editables 2010-08-18 23:55:39 +02:00
Ronny Pfannschmidt 856a8b10d2 support install/global options for editables 2010-08-18 23:55:39 +02:00
Jannis Leidel 4b5fc89706 Worked around another instance of the bug in the mimetypes lib documented in http://bugs.python.org/issue5853. 2010-08-10 12:04:40 +02:00
Hugo Lopes Tavares 80bc4fab63 bugfix for #150 - editable git repos aren't updated when re-installed; Alex Robbins (alexrobbins) helped fix that bug 2010-07-30 13:06:36 -03:00
Jannis Leidel ac2bfb5f32 Fixed minor cosmetic issues to please pep8 tests. 2010-07-29 18:56:03 +02:00
Jannis Leidel e91f167dfd Moved pkgutil to its own file to keep the backwardcompat module a little cleaner. 2010-07-26 19:31:49 +02:00
Jannis Leidel 94dfe26d36 Fixed using pkgutil for Python 2.4 by adding pkgutil itself to the backwardcompat module. 2010-07-26 18:53:59 +02:00
Jannis Leidel 0cb87df5cd Made version control and commands loading use pkgutil. 2010-07-26 04:54:16 +02:00
Jannis Leidel 78394430b1 Fixed wrong __all__ list. 2010-07-26 04:51:36 +02:00
Armin Ronacher 792a2775de Make install --editable work for multiple matches of .egg-info
directories.

In case it finds more than one, it will pick the toplevel one.  This fixes
problems caused when for example someone extracts a tarball in a dist
folder for testing purposes.
2010-07-26 02:15:53 +02:00
Wil Tan 3c30204a7d pass install_options to install_editable 2010-07-11 21:25:23 +10:00
Hugo Lopes Tavares 4d9fb4f651 bugfixes related to os.path.sep for windows (issue #107) 2010-08-06 15:05:00 -03:00
Hugo Lopes Tavares ac452b1a09 simple refactoring to express the intention better 2010-08-06 12:47:50 -03:00
Hugo Lopes Tavares cd852648e9 bugfix to issue #107 - Can't install if a directory in cwd has the same name as the package you're installing
if user is trying to install using ``pip install ./foo`` or ``pip install foo/`` it assumes it should use file system folder
2010-08-06 12:41:49 -03: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
Hugo Lopes Tavares 0ccd5ebf97 using custom xmlrpclib.Transport (testability purposes) 2010-07-02 09:27:22 -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 09cbc5399b insert pip-delete-this-directory.txt in every build directory pip creates temporarily (it identifies pip created that), and always remove it if no longer needed. it fixes issue #57 and issue #133 2010-07-01 02:07:34 -03:00
Hugo Lopes Tavares 8cdbebc60f added a global function with a good name, abstracting how it knows about running under virtualenv 2010-07-01 00:09:22 -03:00
john.scott.atlakson@gmail.com 425bfafbb6 Fixed bug where git commit revisions were ignored (unless they were the full SHA1 of a branch or tag) which resulted in pip installing HEAD instead of the specified revision.
If a revision is provided, the git backend will checkout the revision unless it is == HEAD.
2010-06-27 13:19:47 -04: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
Hugo Lopes Tavares 9a7e8bd4ae renamed from _is_file_url_scheme to _is_local_repository - it was misnamed 2010-06-21 18:33:59 -03:00
Hugo Lopes Tavares fe7476284b fixed issue related to svn+svn+file:// when freezing (http://paste.pocoo.org/show/224427/) 2010-06-14 11:38:47 -03:00
Hugo Lopes Tavares 3126a19e17 fixed #132 in mercurial (found mercurial local repos failed in windows) 2010-06-09 19:57:06 -03:00
Hugo Lopes Tavares ba47445bec moved _is_file_scheme to VersionControl class and renamed it to _is_file_url_scheme 2010-06-09 19:56:36 -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 cfadd22030 bugfix to #132 (bazaar file scheme) in win32 2010-06-09 19:42:46 -03:00