Prior to this being fixed, the temporary resolution was to pin setuptools to less than 70.0 until this issue is fixed. Just a heads up, there is a related PR that contains the above-mentioned fix: https://github.com/pypa/setuptools/pull/4422
Therefore, since this pin is no longer needed, we should still put comments in the event that we need to revisit pinning setuptools in the future. Therefore, the following was added to the install.sh:
Consolidate the pip install commands of pip and setuptools to a one-liner
When pip installing supervisor, do not specify the --ignore-installed as that basically updates all dependency packages, which includes setuptools in this case, to the latest which we may not want.
Added a comment that when creating the virtual environment, can optionally specify the --no-setuptools flag option in case we ever have to pin setuptools.
With the setuptools 70.0 release, it is found that it broke our builds due to the issue described here:
https://github.com/pypa/setuptools/issues/4399
Prior to this being fixed, the temporary resolution was to pin setuptools to less than 70.0 until this issue is fixed. Just a heads up, there is a related PR that contains the above-mentioned fix: https://github.com/pypa/setuptools/pull/4422
Therefore, since this pin is no longer needed, we should still put comments in the event that we need to revisit pinning setuptools in the future. Therefore, the following was added to the install.sh:
--ignore-installed
as that basically updates all dependency packages, which includes setuptools in this case, to the latest which we may not want.--no-setuptools
flag option in case we ever have to pin setuptools.