Skip to content

ewoks install: fresh env by default with the pip-venv package manager - #332

Open
woutdenolf wants to merge 1 commit into
mainfrom
331-ewoks-install-support-fresh-environments
Open

ewoks install: fresh env by default with the pip-venv package manager#332
woutdenolf wants to merge 1 commit into
mainfrom
331-ewoks-install-support-fresh-environments

Conversation

@woutdenolf

@woutdenolf woutdenolf commented Aug 10, 2026

Copy link
Copy Markdown
Member

In #65 we changed the graph attributes

"requirements": ["ewokscore==5.1.0", "networkx==3.4.2"]

to

"requirements": {
    "python": {"version": "3.12.11", "implementation": "CPython", "...": "..."},
    "system": {"system": "Linux", "machine": "x86_64", "...": "..."},
    "distributions": [
        {"name": "ewokscore", "version": "5.1.0", "installer": "pip"},
        {"name": "networkx", "version": "3.4.2", "installer": "pip"}
    ],
    "manager": {
        "name": "pip",   # Renamed in this PR to "pip-venv"
        "version": "25.0.1",
        "files": {"requirements.txt": "ewokscore==5.1.0\nnetworkx==3.4.2\n"}
    }
}

The final goal is to support more package managers than pip (uv, poetry, pixi and conda).

This PR is another step:

  • Refactor the Pip manager to support environment creation and use it by default (rename it to pip-venv).
  • In-place installation is opt-in.
  • Remove the non-Pip managers to be handled in follow-up PRs.

See docs on how this PR affects ewoks install and ewoks convert

  • doc/howtoguides/requirements.rst
  • doc/tutorials/install.rst
  • doc/tutorials/install/pip_venv.rst

This was cherry-picked from #330 to make the review easier. The other PR already adds uv, pixi, conda and poetry. This PR already lays the groundwork for those in terms of core, test and doc infrastructure.

FYI python -m ewoks._requirements.__init__ does a pip gathering in your current environment. Might be useful for the reviewing.

@woutdenolf woutdenolf linked an issue Aug 10, 2026 that may be closed by this pull request
@woutdenolf
woutdenolf marked this pull request as ready for review August 10, 2026 11:42
@woutdenolf
woutdenolf requested a review from a team August 10, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ewoks install: support fresh environments

1 participant