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

307 commits

Author SHA1 Message Date
Benoit Pierre 77f6ac676a forward verbose flag to build dependencies installs 2018-05-18 23:45:55 +02:00
Benoit Pierre 1ac5f09911 tweak output when installing PEP 518 build dependencies
Suppress warnings about out-of-PATH script installs.
2018-05-18 23:45:55 +02:00
Benoit Pierre 7b4790d0ca cleanup PEP 518 implementation
- remove unused `BuildEnvironment` parameter: `no_clean`
- move helper to install build requirement to the `BuildEnvironment` class
- simplify a little the 2 different code paths (with and without build isolation)
2018-05-18 23:45:55 +02:00
Benoit Pierre ca4e2ad6ad improve handling of PEP 518 build requirements
Offload more work to the underlying pip command used to install the
build requirements, so there's no need to duplicate code to handle
environment markers/extras. This is done by setting the correct options
from the finder passed in argument to `_install_build_reqs`.
2018-05-18 23:45:55 +02:00
Tom Freudenheim daae935450 Merge branch 'master' into 3905_Pip_version_check_cache_dir 2018-05-17 21:59:25 -04:00
Donald Stufft 90b3db476f Drop support for Python 3.3 2018-05-17 13:34:48 -04:00
Tom Freudenheim 16528ed5f1 Cleanup per PR comments 2018-05-17 09:39:26 -04:00
Tom Freudenheim 631c080cc8 use options to get cache path 2018-05-16 17:55:34 -04:00
Tom Freudenheim cd7c25dece removed VirtualenvSelfCheckState per stufft 2018-05-16 15:44:24 -04:00
Paul Kehrer ba80574225 Fix a rare segfault
If pip10 is installed and pyopenssl+cryptography are present in the
environment pip's vendored urllib3 will automatically activate its
pyopenssl adapter. This is by design so users can potentially opt-in to
more up-to-date TLS versions than what are provided by their copy of
Python. However, if a user has these packages & subsequently runs
pip install --ignore-installed cryptography then a segfault will occur
due to overwriting an mmap'd shared object.
2018-05-14 13:34:33 -04:00
Daniel Shaulov d67d98dd91 Add a --prefer-binary flag. (#5370)
The flag makes pip prefer an older but valid binary distributions over a newer source distributions.

Fixes #3785.
2018-05-11 11:17:32 +05:30
Shlomi Fish 508517f0d7 Fix the capitalization of "GitHub". 2018-05-10 18:18:30 +03:00
Jeremy Zafran 7655893601 remove usernames and passwords for index URLs using basic auth from "Looking in indexes" log messages 2018-04-27 00:41:54 -04:00
Jeremy Zafran 5bc94f3348 Move remove_auth_from_url and test from Subversion class to pip._internal.utils.misc 2018-04-27 00:41:54 -04:00
Donald Stufft dec22c92c2 Switch to CalVer and set a release cadence 2018-04-22 14:21:50 -04:00
Jakub Wilk 9d7095c72e Fix typo (#5320) 2018-04-22 14:12:42 +05:30
Paul Moore 0ae0109901
Merge pull request #5293 from andresdelfino/master
Remove trailing os.sep to avoid false negatives
2018-04-20 09:39:40 +01:00
Danny Hermes d344e3469f
Removing repeated "support" in 3.3 deprecation notice. 2018-04-19 12:12:04 -07:00
Danny Hermes 9515b42c7e
Grammar fix (supported -> support) in 3.3 warning. 2018-04-19 12:01:16 -07:00
Paul Moore 7f2c89f449 Bump version for release 2018-04-19 18:04:16 +01:00
Andrés Delfino 55e0928a75 Remove trailing os.sep to avoid false negatives 2018-04-18 22:10:45 -03:00
Paul Moore d8172b961c
Merge pull request #5227 from benoit-pierre/fix_pep518,_again
fix PEP 518 support when pip is installed in the user site
2018-04-18 17:55:04 +01:00
Paul Moore 3c50345f4b
Merge pull request #5280 from pradyunsg/fix/5251
Reorder conditionals to deal with installed VCS requirements
2018-04-18 15:23:53 +01:00
Pradyun Gedam 123e61d4a5
Reorder conditionals to deal with installed VCS requirements 2018-04-18 09:39:27 +05:30
Paul Moore 64bf4dc3bc
Merge pull request #5257 from pfmoore/distlib_027
Update distlib to 0.2.7
2018-04-17 20:45:36 +01:00
Paul Moore 9875055ffe
Merge pull request #5239 from pradyunsg/fix/5237
Improve Error Messages on EnvironmentErrors when installing
2018-04-17 18:28:59 +01:00
Paul Moore ea1319de95
Merge pull request #5233 from pradyunsg/fix/5219
Make the Windows "self-modification" check more strict
2018-04-17 18:16:59 +01:00
Pradyun Gedam 3e7a66c070
Don't advice about --verbose (it'ss obvious) 2018-04-17 14:56:57 +05:30
Pradyun Gedam 4a1c7b891f
Print Better Error Messages on EnvironmenErrors while running pip install.
This fixes various issues with the current logic and splits out the
message generation into a separate unit-test-able function.

Improvements:
- Does not not-print any information in some cases
- Mentions original error message, or entire traceback if verbose.
- In case of permission/access errors, suggests the user to use --user
  and/or check permissions
2018-04-17 14:56:44 +05:30
Donald Stufft 084cbb087b Fix msgpack on older versions of Python 2.7 2018-04-16 17:32:54 -04:00
Paul Moore 070af76d8d Update distlib to 0.2.7 2018-04-16 22:02:52 +01:00
Benoit Pierre 02b678f557 fix PEP 518 support when pip is installed in the user site
Do not use the build environment isolation during the build dependencies installation.
2018-04-16 22:58:44 +02:00
Donald Stufft 275ab7c3f5 Switch pip to use Warehouse by default 2018-04-16 15:54:11 -04:00
Pradyun Gedam c82d3d99af
Make the Windows "self-modification" check more strict 2018-04-15 10:17:17 +05:30
Paul Moore 4db471fd8f Bump version for release 2018-04-14 10:24:52 +01:00
Paul Moore 22c8656b57 Don't warn about script locations if --target is specified 2018-04-10 18:07:53 +01:00
Benoit Pierre 6da1d9e47c fix PEP 518 support
* fix build environment handling when using PyPy
* do use the build environment for all build commands
* allow installing and building a wheel of a PEP 518 enabled
  package without prior installation of setuptools and/or wheels
* fix check for minimum supported requirements for PEP 518 support:
  - correctly handle complex requirements
  - both setuptools and wheels are needed
2018-04-08 14:06:11 +02:00
Pradyun Gedam 500505e3fa
🎨 use a list comprehension 2018-04-07 17:25:01 +05:30
Pradyun Gedam af3c1cfe65
Normalize case before checking for paths 2018-04-06 14:24:16 +05:30
Pradyun Gedam 5a8150f82c
Merge pull request #5163 from pradyunsg/fix/5157
Do not warn about script location if it's with sys.executable
2018-04-06 14:19:08 +05:30
Paul Moore c76452ade9
Merge pull request #5151 from mattip/master
BUG: ioctl(fd, termios.TIOCGWINSZ, ...) returns 8 bytes
2018-04-05 14:35:55 +01:00
Pradyun Gedam 095c165780
Merge pull request #5159 from di/fix/5140
Fix installing from Git with short SHA
2018-04-04 14:03:02 +05:30
Pradyun Gedam 61a96bcf58
Do not warn about script location if it's with sys.executable 2018-04-04 13:21:57 +05:30
Pradyun Gedam ee2e81ca1f
Use all available distributions
Same as b5f56efde5
2018-04-04 13:03:07 +05:30
Dustin Ingram 737dfbfc71
Conditionally fetch the revision if it's a ref 2018-04-03 14:46:33 -05:00
Pradyun Gedam ecc1072ba0
Merge pull request #5146 from pradyunsg/fix/check-accept-prerelease-versions
Accept prerelease versions when checking conflicts
2018-04-03 23:18:10 +05:30
Pradyun Gedam 69e2dde515
Merge pull request #5136 from StephanErb/check_normalization
Fix name normalization used for install warnings
2018-04-03 16:04:27 +05:30
mattip 8b9abc2988 BUG: ioctl(fd, termios.TIOCGWINSZ, ...) returns 8 bytes 2018-04-03 05:58:05 +03:00
Pradyun Gedam 0de893161e
Move initialization to a better place 2018-04-03 00:02:51 +05:30
Stephan Erb 72b3195f0e Fix name normalization used for install warnings 2018-04-02 20:17:20 +02:00
Pradyun Gedam abfbfcc7dc
Actually build wheels for VCS checkouts 2018-04-02 23:20:54 +05:30
Pradyun Gedam 1862d2f887
Accept prerelease versions when checking conflicts 2018-04-02 21:35:49 +05:30
Paul Moore 93ad93e807 Bump version for release 2018-04-02 11:56:05 +01:00
Pradyun Gedam 607f5dde9c
Use the correct way to format default in optparse 2018-04-01 12:06:29 +05:30
Paul Moore c1fcd79aa5 Bump version for beta release 2018-03-31 11:31:28 +01:00
Donald Stufft 0007825733
Merge pull request #4835 from pradyunsg/vendoring/enable-c-libs
Enable vendor C libraries on non-Windows platforms
2018-03-30 19:59:55 -04:00
Paul Moore d6bf7a90ef
Merge pull request #5055 from pradyunsg/misc/3564-fix
Document that --build disables cleanups
2018-03-30 22:18:12 +01:00
Pradyun Gedam bd31672508
Stop bothering about the PyOpenSSL version 2018-03-30 20:56:45 +05:30
Pradyun Gedam da2d7ce5b5
Merge branch 'master' into resolver/warn-after-resolution 2018-03-30 13:39:22 +05:30
Pradyun Gedam aaa9310a39
Reuse logic from urllib3 for use of OpenSSL 2018-03-30 13:27:42 +05:30
Pradyun Gedam 6ec5bc56fd
Merge branch 'master' into vendoring/enable-c-libs 2018-03-30 12:38:13 +05:30
Pradyun Gedam c2a4ea4731
Merge branch 'master' into refactor/reduce-action-at-distance 2018-03-30 11:15:50 +05:30
Pradyun Gedam 83cb225ded
Merge pull request #4925 from pradyunsg/resolver/move-dependency-info-and-install-order
Move dependency info and install order into Resolver
2018-03-29 17:01:08 +05:30
Pradyun Gedam 49767ec374
Use string representation for comparing
More robust with weird requirements that can't be directly compared for
some reason (like markers).
2018-03-28 13:48:38 +05:30
Pradyun Gedam f286fb8bdd
pip check should care about the markers 2018-03-28 13:44:21 +05:30
Pradyun Gedam e04e5a6aab
mypy gets more data 2018-03-28 13:43:56 +05:30
Pradyun Gedam 3d7fbb31a9
Merge branch 'master' into resolver/warn-after-resolution 2018-03-27 20:10:56 +05:30
Paul Moore d41dc17910
Merge pull request #5012 from MarSoft/patch-2
Fix typo in --help for --no-deps option
2018-03-27 14:35:56 +01:00
Pradyun Gedam 46e41dec1f
Merge pull request #5117 from pradyunsg/misc/help-messages
Assign pip config command summary correctly
2018-03-27 10:38:23 +05:30
Paul Moore aabf71bd7e
Merge pull request #4985 from anubhavp28/master
Updated get_terminal_size to check for shutil.get_terminal_size first.
2018-03-26 17:52:25 +01:00
Paul Moore 307503494e
Merge pull request #4956 from segevfiner/complete-short-opts
Add auto completion of short options
2018-03-26 15:51:25 +01:00
Pradyun Gedam 54686849f1
Merge branch 'master' into misc/help-messages 2018-03-26 19:40:06 +05:30
Paul Moore cbc71e5c0f Use an explicit test for shutil.get_terminal_size rather than a version check 2018-03-26 14:55:42 +01:00
Paul Moore 61eda75a3f
Merge pull request #4989 from pradyunsg/misc/better-pep-518-message
Improve message when setuptools is missing (PEP 518)
2018-03-26 14:46:40 +01:00
Paul Moore d6e050af75
Merge pull request #5116 from pfmoore/issue5085
Fix for issue 5085 (--user set in config causes pip wheel to fail)
2018-03-26 14:27:14 +01:00
Paul Moore 87bb4f9c13 Hide --no-user option 2018-03-26 12:01:27 +01:00
Paul Moore 17e0d115e8 Fix for issue 5085 (--user set in config causes pip wheel to fail) 2018-03-25 18:22:18 +01:00
Paul Moore eb62a44aaf
Merge pull request #5114 from pfmoore/vendoring
Update vendored libraries
2018-03-24 14:10:36 +00:00
Paul Moore 701d88d06d Placate flake8 (2 spaces before inline comment) 2018-03-24 11:55:09 +00:00
Paul Moore 6e8af823f1 Silence invalid mypy errors (see python/typeshed#1985) 2018-03-24 11:41:51 +00:00
Donald Stufft 4c16e71cdd Merge branch 'release/9.0.3' into merged/9.0.3 2018-03-21 21:34:03 -04:00
Phil Pennock 23cd8f6899 Keep install options in requirements.txt from leaking
The list of install options passed into the setup routine is mutable,
passed by reference, so adding items for "this package" to that list
mutates the options for all subsequent packages.

Isolate the lists before mutating them.

Includes a functional test, which has been confirmed to fail without
this fix.

Fixes #3763
Fixes #4453
Fixes #5089
2018-03-20 16:23:34 -04:00
Paul Moore c74c3d1380 Update vendored libraries 2018-03-20 15:23:38 +00:00
Paul Moore 08de0b722a Update vendor.txt 2018-03-20 14:41:32 +00:00
Pradyun Gedam 7b2be65e8c
Correctly assign summary for pip config 2018-03-20 00:09:19 +05:30
Paul Moore cb696fce08
Merge pull request #5053 from pradyunsg/feature/allow-disabling-isolation
Add an option to allow disabling build isolation
2018-03-14 19:13:53 +00:00
Pradyun Gedam 398fea844c
Improve message when setuptools is missing 2018-03-09 15:51:24 +05:30
Pradyun Gedam c08d4cc806
Add --no-build-isolation for disabling build isolation 2018-03-09 00:01:26 +05:30
Pradyun Gedam 1fc59bc593
Document that --build disables cleanups 2018-03-05 00:33:40 +05:30
Pradyun Gedam 06e61c0962
🎨 2018-03-03 07:14:54 +05:30
Pradyun Gedam 25124c0b46
Merge branch 'resolver/move-dependency-info-and-install-order' into resolver/warn-after-resolution 2018-03-03 02:53:08 +05:30
Pradyun Gedam 851518b17a
Merge branch 'refactor/reduce-action-at-distance' into resolver/warn-after-resolution 2018-03-03 02:51:37 +05:30
Pradyun Gedam 84d70fb6ec
Move all enviroment management into BuildEnvironment 2018-03-03 02:26:14 +05:30
Pradyun Gedam 255a518157
Merge branch 'master' into refactor/reduce-action-at-distance 2018-03-03 02:08:01 +05:30
Pradyun Gedam 6caca65942
Merge branch 'master' into resolver/move-dependency-info-and-install-order 2018-03-03 02:06:12 +05:30
Paul Moore 34cc364903
Merge pull request #4999 from xoviat/pep518-editable
Run setup.py develop inside of PEP 518 build environment
2018-03-02 08:40:17 +00:00
Paul Moore 1cb99c1a6a
Merge pull request #4877 from edmorley/markers-ignore-loglevel
Use log level info when ignoring packages due to environment markers
2018-03-01 17:54:46 +00:00
Paul Moore 01a555ed64
Merge pull request #4932 from doloopwhile/bugfix/4917-decoding-stdout-of-shell
Vendor Update - stdout and stderr of shell should be decoded with system encoding
2018-03-01 17:52:33 +00:00
Pradyun Gedam 3b7dd50a62
Merge pull request #4977 from pradyunsg/misc/verbosity-properly
Add a verbosity attribute to basecommand
2018-03-01 23:17:06 +05:30
xoviat 55458fc179
Merge branch 'master' into pep518-editable 2018-03-01 10:39:28 -06:00