Commit Graph

122 Commits

Author SHA1 Message Date
Chris Jerdonek aec72bd0cd Add log divider variable. 2019-02-22 00:14:58 -08:00
Maxim Kurnikov 4ddfcb9227 rename variable to fix mypy redefinition error 2019-02-22 00:40:29 +03:00
Pradyun Gedam 88bcb261f7
Merge pull request #6154 from cjerdonek/show-stdout-default
Change call_subprocess()'s show_stdout default from True to False
2019-02-21 01:08:05 +05:30
Chris Jerdonek ebe2417110 Fix the RECORD filename of installed files appearing in the old RECORD. 2019-02-15 02:33:02 -08:00
Chris Jerdonek d3a1b8536a Improve logging in the case of a failed legacy build. 2019-02-14 13:57:07 -08:00
Chris Jerdonek d2051f14bb Change the default of call_subprocess()'s show_stdout from True to False. 2019-02-12 05:11:51 -08:00
Chris Jerdonek 6cdecce71d Fix an IndexError crash when a legacy build of a wheel fails. 2019-02-10 13:10:39 -08:00
Pradyun Gedam 61fd802b71
Improve wheel build logic to copy the correct file
* Return paths from legacy/PEP 517 build handlers
* Simplify the wheel moving logic
* Sort the result of os.listdir, to increase determinism
2019-02-05 08:35:01 +05:30
Chris Jerdonek d7b256651c Simplify if logic in should_use_ephemeral_cache(). 2019-02-01 02:26:00 -08:00
Chris Jerdonek 6b0892eace Use the ephemeral cache if autobuilding and no cache directory is available. 2019-02-01 02:25:56 -08:00
Chris Jerdonek 806a013bc0 Add failing test for the have_directory_for_build AssertionError. 2019-02-01 02:23:58 -08:00
Chris Jerdonek e5f4bbb7dd
Merge pull request #6191 from cjerdonek/long-record-lines
Allow and warn on RECORD lines with more than three elements
2019-01-24 12:22:45 -08:00
Chris Jerdonek 7f25059bf7 Allow and warn on RECORD lines with more than three elements. 2019-01-23 19:24:38 -08:00
Chris Jerdonek 8074db86d6 Add failing test. 2019-01-23 19:24:34 -08:00
Pradyun Gedam 7db266687c
Check wheel build locations only when ephem cache isn't used
When the ephemeral cache is used, the build can always occur. There is
no need to check for those.
2019-01-23 09:48:06 +05:30
Maxim Kurnikov 7696e7e530 Add type annotations for pip._internal.download, pip._internal.wheel and pip._internal.pep425tags (#6067)
References https://github.com/pypa/pip/issues/4748, https://github.com/pypa/pip/pull/6038.
2018-12-16 14:46:39 +05:30
Pradyun Gedam fc62b5b677
Move wheel extension information to remove cycle imports 2018-11-30 12:46:08 +05:30
Pradyun Gedam 41f87fba35
Add notes for future cleanups 2018-11-30 11:43:35 +05:30
Pradyun Gedam 9781e1381e
Move an import to top of wheel.py 2018-11-30 11:43:15 +05:30
Paul Moore 4ca38e0c38 Merge with master 2018-11-11 13:49:35 +00:00
Chris Jerdonek 5c93250fa9
Merge pull request #5875 from uranusjr/egg-info-canonical
Rewrite egg_info_matches with canonicalize_name
2018-10-30 01:30:40 -07:00
Paul Moore f805ac15a7 Properly wrap all hook calls in our subprocess runner 2018-10-29 23:33:21 +01:00
Paul Moore 3c94d81f68 Support --python-tag for PEP 517 builds 2018-10-29 23:33:21 +01:00
Paul Moore 4281bf8e61 Correct an out of date comment 2018-10-29 23:32:13 +01:00
Paul Moore ab3e21635a Add a news file 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 8fbf78d407 Phase 2 - generate metadata using PEP 517 hook 2018-10-29 23:28:23 +01:00
Paul Moore 14f35f91f5 Experimental fix to pep517 to use pip's subprocess caller 2018-10-29 23:28:23 +01:00
Paul Moore de4d5038f8 Phase 1 - build wheels using PEP 517 hook 2018-10-29 23:28:23 +01:00
Chris Jerdonek 951e0cba51
Fix #5868: TypeError in move_wheel_files(). (#5883) 2018-10-24 09:19:58 -07:00
Tzu-ping Chung 3368819156 Split, simplify, and fix egg_info_matches 2018-10-22 16:46:42 +08:00
Pradyun Gedam 52cf26e5cb
Merge pull request #5709 from BoboTiG/fix-warnings
Fix several warnings
2018-09-18 22:25:00 +05:30
Bernhard M. Wiedemann f4bda78815 Sort list of RECORD entries
Without sorting, the 'installed' hash had entries in random order
that caused output to differ for every run.

See https://reproducible-builds.org/ for why this matters.

Sorting all entries to make testing easier.
2018-09-11 13:51:33 +02:00
Nitesh Sharma b818b8324d refactor format control and rename test functions 2018-08-28 21:45:40 +05:30
Nitesh Sharma e10a613212 Refactoring: Move FormatControl to separate class
This moves FormatControl named tuple and it's all related
methods to separate class.

Closes https://github.com/pypa/pip/issues/5592
2018-08-28 21:12:42 +05:30
Mickaël Schoentgen cc50bd37b8 Fix 'logging.warn' method is deprecated, use 'warning' instead in wheel.py 2018-08-16 20:40:29 +02:00
Pradyun Gedam 8df8e53901
Merge branch 'master' into refactor/introduce-models 2018-07-24 01:35:56 +05:30
Oliver Jeeves ca5cca3426
Fix error trying to generate scripts warning when PATH not set
fixes #5558
2018-07-07 02:59:55 +05:30
Pradyun Gedam c92d13e9d3
Fix new lint errors from newer flake8 2018-06-27 12:53:31 +05:30
Pradyun Gedam 39995b32db
Move Link to models 2018-06-24 02:38:21 +05:30
Pradyun Gedam 54722aa7ec
Remove unused imports 2018-06-13 13:17:30 +05:30
Pradyun Gedam a121abbc30
Add flake8 ignores for mypy imports 2018-06-13 13:17:30 +05:30
Anthony Sottile 6533f883f6 rehash hard-codes sha256, remove algo param (#5485) 2018-06-11 22:43:32 +05:30
Benoit Pierre 92e6e19e7a minor cleanup 2018-05-18 23:45:55 +02: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
Andrés Delfino 55e0928a75 Remove trailing os.sep to avoid false negatives 2018-04-18 22:10:45 -03:00
Pradyun Gedam 123e61d4a5
Reorder conditionals to deal with installed VCS requirements 2018-04-18 09:39:27 +05:30
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 61a96bcf58
Do not warn about script location if it's with sys.executable 2018-04-04 13:21:57 +05:30
Pradyun Gedam 0de893161e
Move initialization to a better place 2018-04-03 00:02:51 +05:30
Pradyun Gedam abfbfcc7dc
Actually build wheels for VCS checkouts 2018-04-02 23:20:54 +05:30
Pradyun Gedam 06e61c0962
🎨 2018-03-03 07:14:54 +05:30
Pradyun Gedam 84d70fb6ec
Move all enviroment management into BuildEnvironment 2018-03-03 02:26:14 +05:30
xoviat 163149fff3 Install build requirements before calling setup.py (#4799)
Setup build environment before first invocation of setup.py and improve test to actually make check that build requirements are installed upon invocation.
2018-03-01 14:20:06 +05:30
Pradyun Gedam e81b602f90
Disallow non-wheel build dependencies (PEP 518)
Merge pull request #4987 from pradyunsg/fix/fork-bombing
2018-01-26 14:20:13 +05:30
Pradyun Gedam bcc98e6b2e
Merge pull request #4991 from pradyunsg/misc/move-pytoml-to-installreq
Move PEP 518 info fetching into InstallRequirement
2018-01-25 09:08:08 +05:30
Pradyun Gedam 14a11bd8b1
Merge pull request #4990 from pradyunsg/misc/move-build-requirement
Move BuildEnvironment into it's own file
2018-01-25 09:06:54 +05:30
Pradyun Gedam 4c147397ea
Merge branch 'master' into cache/ephem-wheel-cache 2018-01-24 02:15:21 +05:30
Pradyun Gedam 5ea50d2d8b
Move PEP 518 info fetching into InstallRequirement 2018-01-23 22:10:07 +05:30
Pradyun Gedam 470d48ad6e
Move BuildEnvironment out of wheel.py 2018-01-23 22:08:21 +05:30
Pradyun Gedam 547f92d0c2
Only allow the finder to use wheels as build reqs 2018-01-23 01:35:24 +05:30
Pradyun Gedam 729990c986
Round 1 of Cleanups (#4844)
* misc: fix typo
* misc: 🎨 cleanup parenthesis
* misc: 🎨 minor simplifications
* tests: fix test_console_to_str_warning
2017-12-25 15:23:27 +05:30
Anthony Sottile 9762eb02e3 Upgrade syntax in src/pip/_internal
Changes were automated via https://github.com/asottile/pyupgrade

See #4921
2017-12-14 21:59:22 -08:00
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
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 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Renamed from pip/wheel.py (Browse further)