Commit Graph

154 Commits

Author SHA1 Message Date
Chris Jerdonek 8e531be255 Refactor out build_wheels(), and test. 2019-02-27 20:36:25 -08:00
Nick Timkovich ab53c8209c Fix error formatting
`+` has a lower precedence than the `.format`, so the formatting doesn't actually insert anything. Implicit string concatenation has higher (highest?) precedence.
2019-02-06 22:01:05 +01:00
Paul Moore e8f7aa1446 Pass use_pep517 option to resolver 2018-11-14 14:06:35 +00:00
Paul Moore 9d2b17854d Add --[no-]use-pep517 command line flag 2018-10-29 23:33:21 +01:00
Paul Moore c8d8e37ea4 Fix copy and paste error 2018-10-29 23:32:13 +01:00
Paul Moore 48e9cb693f Address test failures 2018-10-29 23:32:13 +01:00
Paul Moore b62284a81b Build PEP 517 and legacy wheels separately 2018-10-29 23:32:13 +01:00
Paul Moore b9e92a70fd With build isolation, we shouldn't check if wheel is installed to decide if we build wheels 2018-10-29 23:32:13 +01:00
Paul Moore 8fbf78d407 Phase 2 - generate metadata using PEP 517 hook 2018-10-29 23:28:23 +01:00
Thomas Kluyver 32b8a797cb Remove unused variable 2018-10-02 14:29:58 +02:00
Thomas Kluyver 3ec6775e1f Catch errors checking for conflicts, don't crash install 2018-10-02 12:07:48 +02:00
Loren Carvalho cddcb1407f Open up plat/abi/impl options to `install --target`
* Move dist restriction options to be re-usable (between install/download)
* Make dist restriction options usable in `install` (exclusively with --target)
* Add a check_supported_wheels bool to RequiriementSet for non-resolved (full path) dependencies
2018-08-05 16:13:20 -05:00
Pradyun Gedam 1694a5f1bf
Move status_codes to pip._internal.cli 2018-07-30 09:43:53 +05:30
Pradyun Gedam 21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +05:30
Pradyun Gedam 922f8d9857
Sort imports 2018-07-29 18:26:33 +05:30
Pradyun Gedam 8b4713f63c
Move cmdoptions to pip._internal.cli 2018-07-29 18:26:33 +05:30
Pradyun Gedam 8d45e0e647
Move basecommand to pip._internal.cli 2018-07-29 18:26:28 +05:30
Benoit Pierre 43b8ed4945 detect fork-bombs during build dependencies installs 2018-06-26 10:40:23 +02:00
Stephan Erb cbc21a5957 Speed up printing of installed package versions (#5127)
The installed set of packages is already fixed and no longer changing.
It is therefore safe to reuse a single `pkg_resources.WorkingSet` for
all invocations of `get_installed_version`.
2018-06-19 12:20:58 +05:30
Pradyun Gedam 369061b535
Move Windows protection check to specific commands 2018-05-30 15:57:06 +05:30
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
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
Paul Moore 22c8656b57 Don't warn about script locations if --target is specified 2018-04-10 18:07:53 +01:00
Pradyun Gedam 607f5dde9c
Use the correct way to format default in optparse 2018-04-01 12:06:29 +05:30
Pradyun Gedam 3d7fbb31a9
Merge branch 'master' into resolver/warn-after-resolution 2018-03-27 20:10:56 +05:30
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
Pradyun Gedam c08d4cc806
Add --no-build-isolation for disabling build isolation 2018-03-09 00:01:26 +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 255a518157
Merge branch 'master' into refactor/reduce-action-at-distance 2018-03-03 02:08:01 +05:30
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
Pradyun Gedam 045e244b7e
Run pip check in pip install
Also, add --no-warn-conflicts option to allow supressing the error messages generated.
2018-01-24 18:16:18 +05:30
Pradyun Gedam 5ae396d188
Merge branch 'refactor/reduce-action-at-distance' into resolver/warn-after-resolution 2018-01-24 17:36:30 +05:30
Pradyun Gedam 2e5715e3bb
Move installation order computation into Resolver 2018-01-24 17:17:24 +05:30
Pradyun Gedam 01b2b856b6
Move installation order code out of RequirementSet 2018-01-24 17:17:24 +05:30
Pradyun Gedam 01c985a663
Reduce classes with pycompile attribute 2018-01-21 16:16:43 +05:30
Pradyun Gedam b1cb27d34e
Reduce classes with target_dir attribute 2018-01-21 16:16:42 +05:30
Pradyun Gedam de7d42feb9
Reduce classes with use_user_site attribute 2018-01-21 16:16:19 +05:30
Pradyun Gedam 5958c947b6
Add a verbosity attribute to basecommand 2018-01-20 16:29:22 +05:30
Pradyun Gedam cd14240529
Merge branch 'master' into cache/ephem-wheel-cache 2017-12-01 19:16:27 +05:30
Pradyun Gedam 353a13ddff
isort: Include trailing commas 2017-11-21 13:23:59 +05:30
Pradyun Gedam 01d97e71f0
Merge branch 'master' into cache/ephem-wheel-cache 2017-11-17 12:32:40 +05:30
Pradyun Gedam 24fd884672
Decouple WheelBuilder from RequirementSet (#4860) 2017-11-16 15:16:21 +05:30
Anthony Sottile 3651dd8687 Update comment now that `-d` is not an install option (#4851) 2017-11-12 19:53:18 +05:30
Pradyun Gedam e36bb6d5c3 Merge branch 'master' into cache/ephem-wheel-cache 2017-10-24 15:44:43 +05:30
Chris Jerdonek b112292068 Address issue #1139: make --force-reinstall not require --upgrade (#4432)
* Add failing tests for issue #1139 re: --force-reinstall.

* Address issue #1139: make --force-reinstall not require --upgrade.

* Address review comments.

* Address @xavfernandez's review comments.

This makes the new tests not require network access.
2017-10-24 00:03:20 +02:00
Pradyun S. Gedam 165b10b9db Rework Wheel Caching 2017-10-04 18:53:55 +05:30
Pradyun S. Gedam ebf06ceb9d Merge master 2017-10-04 16:58:31 +05:30
Pradyun Gedam fc7ca26489 Warn user when installing scripts outside PATH (#4553) 2017-10-02 17:54:37 +01:00
Donald Stufft d1379fa336 Merge pull request #4684 from pradyunsg/misc/remove-redundant-import
Remove a redundant import
2017-09-07 12:55:03 -04:00
Pradyun S. Gedam c6cce8509d Remove a redundant import
The linters missed it. Funny.
2017-09-07 16:50:13 +05:30
Pradyun S. Gedam 1240a81b50 Get rid of successfully_installed attr 2017-09-07 00:06:26 +05:30
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Renamed from pip/commands/install.py (Browse further)