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

dont propagate flag

This commit is contained in:
q0w 2023-03-20 07:34:21 +03:00
parent 69cfd23c17
commit a878d7f093
2 changed files with 2 additions and 11 deletions

View file

@ -148,15 +148,6 @@ class InstallRequirement:
self.global_options = global_options if global_options else []
self.hash_options = hash_options if hash_options else {}
self.config_settings = config_settings
if isinstance(comes_from, InstallRequirement) and comes_from.config_settings:
# 1. If a user-requested package has config settings, those are always used.
# 2. If a user-requested package does not have user-specified config
# settings, but is another packages transitive dependency, it would
# inherit the dependants config settings.
# 3. A transitive cannot have user-specified config settings.
# 4. If a transitive dependencys dependant has config settings,
# the config settings are inherited.
self.config_settings = comes_from.config_settings
# Set to True after successful preparation of this requirement
self.prepared = False
# User supplied requirement are explicitly requested for installation

View file

@ -817,8 +817,8 @@ def test_config_settings_local_to_package(
simple1_args = simple1_sdist.args()
assert "--verbose" in simple1_args
bar_args = bar_sdist.args()
assert "--verbose" in bar_args
assert "--verbose" not in bar_args
simple3_args = simple3_sdist.args()
assert "--verbose" in simple3_args
assert "--verbose" not in simple3_args
simple2_args = simple2_sdist.args()
assert "--verbose" not in simple2_args