feat: add EXHORT_PYTHON_INSTALL_BEST_EFFORTS functionality #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
for virtual environment feature
Description And Background
For cases that EXHORT_PYTHON_VIRTUAL_ENV= true, if the version of a certain package in requirements.txt manifest is not suitable for the client python version, then this might results in error when trying to install.
In order to mitigate it and let the user overcome it , a new flag is introduced, EXHORT_PYTHON_INSTALL_BEST_EFFORTS.
it will be relevant and accessed only for EXHORT_PYTHON_VIRTUAL_ENV= true, otherwise, it won't even get referenced.
functionality behavior:
After creating or using the existing virtual environment , the logic will be as follows:
MATCH_MANIFEST_VERSIONS
= true, if so, it will throw an error as these both settings' values are conflicting together.for
MATCH_MANIFEST_VERSIONS
= false, it will try its best efforts to install each one of the packages without specifying the version, that way, it will try to install it implicitly , and let python' pip to install the version tailored for this python version ( for each package being installed).Checklist