Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation about poetry environment and installation #561

Closed
wants to merge 2 commits into from

Conversation

bkorycki
Copy link
Contributor

@bkorycki bkorycki commented Oct 7, 2024

No description provided.

@bkorycki bkorycki requested a review from a team as a code owner October 7, 2024 21:07
Copy link

github-actions bot commented Oct 7, 2024

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@@ -43,13 +43,14 @@ install ModelBench as a CLI tool or library to use in your own projects.
```shell
pipx install poetry
```
Please be sure to install Poetry in a dedicated python virtual environment separate from the environment used for this project.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a surprise to me. Doesn't pipx create its own environment?

If it is something you want people to do, you'll have to give more detail.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pipx does create its own virtual environment(s) for everything you install in it.


2. Clone this repository.
```shell
git clone https://github.com/mlcommons/modelbench.git
```

3. Install ModelBench and dependencies.
3. Install ModelBench and dependencies. Make sure the dedicated python environment you used to install Poetry is not activated when running poetry commands.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's written here seems to me not to be the case. I haven't had problems running poetry from the project's environment, or from the default one. If there is something you want people to do, you'll at least have to be more explicit about it, and possibly mention the error message they'd be seeing if they don't do what you want.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not the project's environment that's the problem, it's the environment that was created to install poetry. This is based on the installation section of the poetry docs https://python-poetry.org/docs/

Copy link
Collaborator

@bollacker bollacker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bollacker bollacker closed this Oct 9, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants