mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
dont propagate flag
This commit is contained in:
parent
69cfd23c17
commit
a878d7f093
|
@ -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 package’s transitive dependency, it would
|
||||
# inherit the dependant’s config settings.
|
||||
# 3. A transitive cannot have user-specified config settings.
|
||||
# 4. If a transitive dependency’s 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue