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

Fix installation docs after #1151 #1185

Merged
merged 1 commit into from
Feb 15, 2021

Conversation

dliappis
Copy link
Contributor

@dliappis dliappis commented Feb 15, 2021

With the 2020-resolver requirement removed in #1151, installation in
virtualenv will fail due older pip versions not using the new
dependency resolver by default[1].

This commit updates the docs such that users always need to upgrade
pip, either in a local or virtualenv environments prior to esrally
installation.

[1] https://discuss.python.org/t/announcement-pip-20-3-release/5948

Relates #1184

@dliappis dliappis added bug Something's wrong :Docs Changes to the documentation labels Feb 15, 2021
@dliappis dliappis added this to the 2.1.0 milestone Feb 15, 2021
@dliappis dliappis self-assigned this Feb 15, 2021
With the `2020-resolver` requirement removed in elastic#1151, installation in
virtualenv will fail due older pip versions not using the new
dependency resolver by default[1].

This commit updates the docs such that users always need to upgrade
`pip`, either in a local or `virtualenv` environments prior to esrally
installation.

[1] https://discuss.python.org/t/announcement-pip-20-3-release/5948
1. Set up a new virtualenv environment in a directory with ``python3 -m venv .``
2. Activate the environment with ``source /path/to/virtualenv/dir/bin/activate``
3. Install Rally with ``python3 -m pip install esrally``
1. Set up a new virtualenv environment in a directory with ``python3 -m venv .venv``
Copy link
Contributor Author

@dliappis dliappis Feb 15, 2021

Choose a reason for hiding this comment

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

One thing to note here that is different to the --user case above is that even with e.g. python 3.8.7 with comes with pip 21.0.1, creating a venv brings pip 20.2.3. Starting with Python 3.9.0, there's a new flag --upgrade-deps that can do this in one go.

Hence, I think it's important to have the admonition in step 3.

Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! I left one optional suggestion. LGTM.

2. Activate the environment with ``source /path/to/virtualenv/dir/bin/activate``
3. Install Rally with ``python3 -m pip install esrally``
1. Set up a new virtualenv environment in a directory with ``python3 -m venv .venv``
2. Activate the environment with ``source /path/to/virtualenv/.venv/bin/activate``
Copy link
Member

Choose a reason for hiding this comment

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

I wonder whether we could simplify this path here assuming we are already in the current directory in the step above, i.e.

source .venv/bin/activate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could, I think we have it here because a few lines after we reference this step at a point where the user might not be in the same directory anymore:

Whenever you want to use Rally, run the activation script (step 2 above) first.

Copy link
Member

Choose a reason for hiding this comment

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

Good point. Then let's be safe here.

@dliappis dliappis merged commit 5679af3 into elastic:master Feb 15, 2021
dliappis added a commit that referenced this pull request Feb 15, 2021
With the `2020-resolver` requirement removed in #1151, installation in
virtualenv will fail due older pip versions not using the new
dependency resolver by default[1].

This commit updates the docs such that users always need to upgrade
`pip`, either in a local or `virtualenv` environments prior to esrally
installation.

[1] https://discuss.python.org/t/announcement-pip-20-3-release/5948

Relates #1184
dliappis added a commit to dliappis/rally that referenced this pull request Feb 22, 2021
As a followup to elastic#1185 this commit adds a few IT tests to validate the
Rally installation steps in the docs.
dliappis added a commit to dliappis/rally that referenced this pull request Feb 22, 2021
As a followup to elastic#1185 this commit adds a few IT tests to validate the
Rally installation steps in the docs.
dliappis added a commit to dliappis/rally that referenced this pull request Feb 22, 2021
As a followup to elastic#1185 this commit adds a few IT tests to validate the
Rally installation steps in the docs.
dliappis added a commit to dliappis/rally that referenced this pull request Feb 22, 2021
As a followup to elastic#1185 this commit adds a few IT tests to validate the
Rally installation steps in the docs.

We also remove hardcoded Python versions from the installation section
of docs instead relying on a checked-in variable to ease maintainance
in the future.
dliappis added a commit that referenced this pull request Feb 23, 2021
As a followup to #1185 this commit adds a few IT tests to validate the
Rally installation steps in the docs.

We also remove hard coded Python versions from the installation section
of docs instead relying on a checked-in variable to ease maintenance
in the future.

Finally we update the PY38/PY39 versions to the latest patch release
(`3.8.8`, `3.9.2`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's wrong :Docs Changes to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants