Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
huakim authored Jan 10, 2025
1 parent 6709107 commit 66d7a85
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions py2pack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,10 @@ def fix_data(data):
data_info = data["info"]
requires_dist = data_info["requires_dist"] or []
provides_extra = data_info["provides_extra"] or []
if requires_dist is not None:
for required_dist in requires_dist:
req = Requirement(required_dist)
if found := extra_from_req.search(str(req.marker)):
extras.append(found.group(1))
for required_dist in requires_dist:
req = Requirement(required_dist)
if found := extra_from_req.search(str(req.marker)):
extras.append(found.group(1))
provides_extra = list(sorted(set([*extras, *provides_extra])))
data_info["requires_dist"] = requires_dist
data_info["provides_extra"] = provides_extra
Expand Down

0 comments on commit 66d7a85

Please sign in to comment.