Thomas Kluyver
042d4844e8
Default to --user install in certain conditions
2019-10-09 08:34:29 +01:00
Albert Tugushev
10b9421193
Fix a typo
2019-10-06 01:10:59 +07:00
Sebastian Jordan
6a2d2dbb81
Merge branch 'master' of https://github.com/pypa/pip into issue-6222
2019-10-03 08:36:19 +02:00
Maxim Kurnikov
3692097cca
add per-file disallow_untyped_defs=False, and set it to True globally
2019-09-29 23:31:15 +02:00
Sebastian Jordan
cd0d6e8239
Delete unnecessary empty line addition
2019-09-25 07:04:56 +02:00
Sebastian Jordan
7a0f7b607d
Improve check_binary_allowed via early return
2019-09-25 06:58:53 +02:00
Sebastian Jordan
4879c8b2eb
Linting
2019-09-22 21:31:45 +02:00
Sebastian Jordan
e9ea3966e0
Build pep 517 requirements when installing packages
2019-09-22 21:29:31 +02:00
Chris Hunt
85dcaa74bb
Unconditionally create TempDirectory.path
2019-09-22 00:02:46 -04:00
Chris Hunt
8b8f8abe45
Unconditionally create TempDirectory in install
2019-09-19 21:54:39 -04:00
Chris Hunt
81d8005bd1
Change argument name to better reflect purpose.
...
Also assert on provided path, since it should have been created in all
cases.
2019-09-11 19:03:57 -04:00
Chris Hunt
82be4ee76a
Use application context manager for PipSession.
...
This removes a level of indentation from all commands without
introducing any dummy functions.
2019-09-07 09:46:48 -04:00
Pradyun Gedam
a39e881479
Fix pip.exe upgrade pip fails on Windows
...
Merge pull request #6928 from atugushev/fix-issue-6924
2019-09-07 14:14:29 +05:30
Chris Hunt
b63ea9cd08
Remove now-unused finder and format_control from WheelBuilder.
2019-09-04 21:10:34 -04:00
Chris Hunt
a4102d179a
Don't check allowed format in wheel.py, pass function to do check.
2019-09-04 21:06:52 -04:00
Albert Tugushev
bb68ebaa84
Address review comments
...
Simplify code
2019-08-26 17:22:47 +03:00
Albert Tugushev
d8b6296227
Fix pip.exe upgrade pip fails on Windows
...
It fails if it already satisfies the requirement, when
pip has been modifying via `pip.exe install ...` command.
2019-08-26 16:05:48 +03:00
A_Rog
70027b2f50
Address #6876 : Make command output go through a single function ( #6881 )
2019-08-22 17:29:22 -07:00
Stéphane Bidoul (ACSONE)
ea517a2bb9
clarify WheelBuilder.build() a bit
2019-08-14 11:24:26 +02:00
Chris Jerdonek
022a36662f
Remove WheelBuilder's dependence on PipSession.
2019-08-11 11:33:23 -07:00
Chris Jerdonek
698b27b875
Start type checking commands/install.py and commands/wheel.py.
2019-08-11 11:33:18 -07:00
Chris Jerdonek
23446f6d0e
Remove the unneeded name argument from populate_requirement_set().
2019-08-08 17:29:02 -07:00
Chris Jerdonek
da9ebed9df
Move RequirementCommand to req_command.py.
2019-08-04 02:05:33 -07:00
Prabakaran Kumaresshan
b562531cc5
Add make_resolver() to RequirementCommand base class ( #6826 ).
2019-08-03 23:47:50 -07:00
Prabakaran Kumaresshan
82dbcdae87
Add make_requirement_preparer() to RequirementCommand base class ( #6810 )
2019-08-01 20:29:44 -07:00
Pradyun Gedam
dc7f2b91d5
Document that `--ignore-installed` is dangerous ( #6794 )
2019-07-30 13:32:04 +05:30
Chris Jerdonek
1f09e67f34
Only import a Command class when it is actually needed.
...
This resulted in an approximate 24% speed-up of a vanilla `pip`
invocation on one system (0.477 secs before, 0.363 secs after).
2019-07-26 23:30:26 -04:00
Ivan Pozdeev
6c7d309a1c
fix flake8 violation
2019-07-27 03:19:11 +03:00
Ivan Pozdeev
d948f63fe2
Document that `--ignore-installed` is dangerous
2019-07-27 02:46:08 +03:00
Pradyun Gedam
537b0fca12
Change isort multi_line_output to 3
2019-07-22 10:15:27 +05:30
Xavier Fernandez
fc618bf3b1
Move virtualenv detection functions into their own module
2019-07-19 10:03:22 +02:00
Chris Jerdonek
db213c04d7
Add add_target_python_options() and make_target_python().
2019-06-23 09:28:54 -07:00
Chris Jerdonek
798d814629
Change PackageFinder to use Tuple[int, ...] instead of List[str] for --python-version.
2019-05-28 03:05:14 -07:00
Pradyun Gedam
b05c66722e
Move Resolver to a legacy_resolve module
2019-05-25 12:35:31 -04:00
Chris Jerdonek
ad2b07898d
Fix pip-install to respect --ignore-requires-python.
2019-05-22 21:34:41 -07:00
Chris Jerdonek
a163ae5af1
Fix some formatting issues in the pip-install docs ( #6432 )
2019-05-07 09:13:56 -04:00
Chris Jerdonek
a2ed253788
Whether to build wheels is no longer affected by --no-cache-dir.
2019-02-27 20:38:09 -08:00
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