File tree 1 file changed +7
-0
lines changed 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,13 @@ def __init__(
151
151
self .hash_options = hash_options if hash_options else {}
152
152
self .config_settings = config_settings
153
153
if isinstance (comes_from , InstallRequirement ) and comes_from .config_settings :
154
+ # 1. If a user-requested package has config settings, those are always used.
155
+ # 2. If a user-requested package does not have user-specified config
156
+ # settings, but is another package’s transitive dependency, it would
157
+ # inherit the dependant’s config settings.
158
+ # 3. A transitive cannot have user-specified config settings.
159
+ # 4. If a transitive dependency’s dependant has config settings,
160
+ # the config settings are inherited.
154
161
self .config_settings = comes_from .config_settings
155
162
# Set to True after successful preparation of this requirement
156
163
self .prepared = False
You can’t perform that action at this time.
0 commit comments