diff --git a/py-rattler/docs/index.md b/py-rattler/docs/index.md index dbfbaf6c8..5e732ade1 100644 --- a/py-rattler/docs/index.md +++ b/py-rattler/docs/index.md @@ -86,7 +86,7 @@ async def main(): channel = Channel("conda-forge") # list of dependencies to install in the env - match_spec = [ + match_specs = [ MatchSpec("python ~=3.12.*"), MatchSpec("pip"), MatchSpec("requests 2.31.0") @@ -95,6 +95,8 @@ async def main(): # list of platforms to get the repo data platforms = [Platform.current(), Platform("noarch")] + virtual_packages = [p.into_generic() for p in VirtualPackage.current()] + cache_path = "/tmp/py-rattler-cache/" env_path = "/tmp/env-path/env" @@ -108,8 +110,9 @@ async def main(): print("finished fetching repo_data") solved_dependencies = solve( - specs = [match_spec], + specs = match_specs, available_packages = repo_data, + virtual_packages = virtual_packages, ) print("solved required dependencies")