Commit fdec38b1 by David Hotham Committed by Bjorn Neergaard

don't export unwanted extras

parent c2c69a3c
......@@ -272,8 +272,9 @@ class Locker:
requirement.constraint = constraint
for require in locked_package.requires:
if require.in_extras and locked_package.features.isdisjoint(
require.in_extras
if require.is_optional() and not any(
require in locked_package.extras[feature]
for feature in locked_package.features
):
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment