-
Notifications
You must be signed in to change notification settings - Fork 314
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
Fix installation docs after #1151 #1185
Conversation
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`` |
There was a problem hiding this comment.
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.
There was a problem hiding this 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`` |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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
As a followup to elastic#1185 this commit adds a few IT tests to validate the Rally installation steps in the docs.
As a followup to elastic#1185 this commit adds a few IT tests to validate the Rally installation steps in the docs.
As a followup to elastic#1185 this commit adds a few IT tests to validate the Rally installation steps in the docs.
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.
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`)
With the
2020-resolver
requirement removed in #1151, installation invirtualenv 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 orvirtualenv
environments prior to esrallyinstallation.
[1] https://discuss.python.org/t/announcement-pip-20-3-release/5948
Relates #1184