Christopher Hunt
d38cead031
Merge pull request #7324 from pradyunsg/refactor/require_hashes
...
Refactor handling of require_hashes in the Resolver+RequirementPreparer
2019-11-10 10:35:05 +08:00
Pradyun Gedam
0612685e7e
Stop passing require_hashes to Resolver directly
2019-11-10 01:52:03 +05:30
Christopher Hunt
5935489ebf
Merge pull request #7316 from chrahunt/refactor/assert-unnamed-are-direct
...
Assert originally unnamed requirements are direct
2019-11-09 21:05:48 +08:00
Pradyun Gedam
c0afe5c81d
Add require_hashes to RequirementPreparer
2019-11-09 12:13:29 +05:30
Pradyun Gedam
4e7867d0a8
Compute require_hashes in populate_requirement_set
2019-11-09 12:05:28 +05:30
Chris Hunt
d56e488f78
Assert originally unnamed requirements are direct
2019-11-08 21:19:57 -05:00
Christopher Hunt
c21fd4a70c
Merge pull request #7305 from chrahunt/maint/deprecate-non-egg-info-legacy-builds
...
Deprecate setup.py-based builds that do not make .egg-info
2019-11-09 09:58:43 +08:00
Christopher Hunt
7af704e3cf
Merge pull request #7310 from chrahunt/refactor/scheme
...
Add Scheme model and use for wheel installation
2019-11-09 09:57:03 +08:00
Chris Hunt
89f6e4fcd5
Deprecate setup.py-based builds that do not make .egg-info
2019-11-07 18:31:04 -05:00
Chris Hunt
6fa64a6b28
Calculate header directories in one place
...
This was already happening in locations.distutils_scheme, we're just
reusing the existing work instead of doing it again.
2019-11-07 12:43:39 -05:00
Chris Hunt
e03a71aff8
Use new Scheme model for wheel installation
2019-11-07 12:43:39 -05:00
Chris Hunt
9de8a6d598
Create scheme unconditionally on install
2019-11-07 12:43:39 -05:00
Chris Hunt
16684fbc28
Create Scheme model and wrap distutils_scheme
...
Now we have a nicely-typed interface to the calculated scheme,
and some more documentation for the same.
2019-11-07 12:43:35 -05:00
Pradyun Gedam
b8de2154db
Bump to the correct development version
2019-11-07 21:59:53 +05:30
Christopher Hunt
53770a7184
Merge pull request #7304 from chrahunt/refactor/remove-unused-noarch
...
Remove unused noarch flag in pep425tags.get_supported
2019-11-07 08:34:11 +08:00
Pradyun Gedam
898d105649
Clean up distutils_scheme types ( #7300 )
2019-11-06 12:02:01 +05:30
Christopher Hunt
d3129f227a
Merge pull request #7301 from chrahunt/refactor/reduce-resolver-finder-dependence
...
Reduce Resolver dependence on PackageFinder
2019-11-06 14:17:55 +08:00
Pradyun Gedam
7b3d3a31e6
Support PEP 405 include-system-site-packages configuration ( #7155 )
2019-11-06 11:47:36 +05:30
Christopher Hunt
8341f87046
Merge pull request #7287 from pradyunsg/refactor/simplify-metadata-generation-flow
...
Simplify metadata generation flow, to be a lot more "linear"
2019-11-06 11:51:49 +08:00
Chris Hunt
deac2343dc
Don't pass PackageFinder to Preparer from Resolver
...
Preparer's overall responsibilities align more with having its own
reference to finder, which will help us remove it from resolver later.
2019-11-05 20:57:14 -05:00
Chris Hunt
f305f66eb2
Trace common finder info outside resolver
...
There's no reason for Resolver to trace this information about our
PackageFinder, we just need a common one-time function to trace useful
information.
2019-11-05 20:57:14 -05:00
Christopher Hunt
7e84f24737
Merge pull request #7295 from sbidoul/remove-wb-no_clean-sbi
...
Remove unused WheelBuilder.no_clean
2019-11-06 09:29:25 +08:00
Chris Hunt
2520ba716a
Remove unused noarch flag in pep425tags.get_supported
2019-11-05 19:36:53 -05:00
Chris Hunt
d709966c72
Normalize style in pip._internal.locations
2019-11-05 19:01:17 -05:00
Chris Hunt
a790c92d2e
Type-safer distutils install command handling
2019-11-05 19:01:14 -05:00
Christopher Hunt
ef20309867
Merge pull request #7298 from chrahunt/remove/deprecate-skip-requirements-regex
...
Deprecate --skip-requirements-regex
2019-11-05 20:54:32 +08:00
Christopher Hunt
31460e5ed7
Merge pull request #7299 from chrahunt/refactor/make-setuptools-args-explicit
...
Make setuptools args explicit
2019-11-05 20:52:35 +08:00
Pradyun Gedam
57d34e0d9b
Allow whitespace in pyvenv.cfg
2019-11-05 14:54:52 +05:30
Pradyun Gedam
5332ec57c6
Apply suggestions from code review
2019-11-05 14:45:08 +05:30
Pradyun Gedam
fe9ae3ba75
Did someone ask why I dislike Python 2?
2019-11-05 14:45:08 +05:30
Pradyun Gedam
1aee0eb5cb
Correctly ignore system site-packages for venv
...
Why: PEP 405 virtual environments have a different mechanism for
ignoring system site-packages in virtual environments.
2019-11-05 14:45:08 +05:30
Pradyun Gedam
fd7c9b7ce4
Refactor virtualenv_no_global
...
Why: This change makes it easier to introduce handling for PEP 405 based
virtual environment's global site-package exclusion logic
2019-11-05 14:45:08 +05:30
Pradyun Gedam
1b9c9e2901
Factor out running_under_virtualenv conditionals
...
Why: This would allow for use in an updated `virtualenv_no_global` that
supports PEP 405 virtual environments.
2019-11-05 14:45:03 +05:30
Stéphane Bidoul (ACSONE)
92a9183f47
Remove unused WheelBuilder.no_clean
2019-11-04 22:56:55 -05:00
Christopher Hunt
7d5967906e
Merge pull request #7288 from pradyunsg/refactor/new-wheel_builder-module
...
Create a new wheel_builder module and move WheelBuilder+friends
2019-11-05 11:54:09 +08:00
Chris Hunt
912f5763c6
Move utils.misc.cast to avoid circular import
2019-11-04 20:16:36 -05:00
Chris Hunt
0339983b0f
Remove intermediate args variable
2019-11-04 20:02:28 -05:00
Chris Hunt
93ffb10a23
Remove old type workaround comments
2019-11-04 20:01:09 -05:00
Chris Hunt
431727a4e4
Set home in setuptools args functions
2019-11-04 19:48:24 -05:00
Chris Hunt
b28d05bb50
Set user and prefix in setuptools args functions
...
Previously we were adding arguments to install_options in response to
command-line parameters, which leads to spooky action at a distance.
Now we provide the arguments explicitly.
2019-11-04 19:40:00 -05:00
Chris Hunt
3ed3f41c3e
Make InstallRequirement.install_editable arguments mandatory
2019-11-04 19:34:40 -05:00
Chris Hunt
a47fef71c2
Deprecate --skip-requirements-regex
2019-11-04 18:00:42 -05:00
Pradyun Gedam
f137aef12e
Choose metadata generator in prepare_metadata
2019-11-04 21:16:14 +05:30
Christopher Hunt
7f8be22584
Merge pull request #7292 from chrahunt/refactor/make-session-required
...
Make session required in pip._internal.req.req_file functions
2019-11-04 19:40:25 +08:00
Christopher Hunt
a0ff620240
Merge pull request #7291 from chrahunt/refactor/cleanup-prepare-1
...
Cleanup operations.prepare
2019-11-04 19:39:24 +08:00
Pradyun Gedam
012d10a3fb
Simplify logic in RequirementTracker ( #7243 )
2019-11-04 15:25:21 +05:30
Pradyun Gedam
528d27a2fe
Nicer comments in prepare_distribution_metadata
2019-11-04 14:30:21 +05:30
Pradyun Gedam
67ae8fdc28
Move call to assert_source_matches_version
2019-11-04 14:30:20 +05:30
Pradyun Gedam
33ccea2e0c
Reduce operations.build.metadata's API to 1 function
...
Why: There isn't any state being maintained, or multiple uses of the
metadata generator for a single requirement. The additional complexity
does not help in any significant manner.
2019-11-04 14:30:15 +05:30
Pradyun Gedam
911722173e
Move distributions.{source.legacy -> source}
...
Why: Based on some more experience from refactoring metadata generation,
it became clear to me that the separation of legacy vs modern codepaths
should happen at lower level than this abstraction.
2019-11-04 12:01:38 +05:30