Skip to content

Commit

Permalink
fix installation of dependency by using the resolved_version instead …
Browse files Browse the repository at this point in the history
…of actual_version
  • Loading branch information
Shubh Bapna committed Jul 29, 2024
1 parent 1acd588 commit 616a7fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/fromager/sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def _maybe_install(
logger.debug(
f"{req.name}: could not determine version of {req.name}, will install: {err}"
)
safe_install(ctx, req, req_type)
safe_install(ctx, Requirement(f"{req.name}=={resolved_version}"), req_type)


def safe_install(
Expand All @@ -537,5 +537,4 @@ def safe_install(
f"{req}",
]
)
version = importlib.metadata.version(req.name)
logger.info("installed %s %s using %s", req_type, req, version)
logger.info("installed %s %s using %s", req_type, req, req.specifier)

0 comments on commit 616a7fd

Please sign in to comment.