In some circumstances pip pulls setuptools 45.0.0, which is not compatible with Python 2. To assure the correct version is installed, add the "--no-setuptools" flag to virtualenv and install the correct setuptools version manually afterwards.
Workaround for: https://github.com/mozilla-services/syncserver/issues/239
Additionally this removes the obsolete pip upgrade. "make build" only runs once and is blocked afterwards by a flag file. Even when removing this flag file manually, "virtualenv" always reinstalls pip, which includes an upgrade to the latest version. A latest supported pip version is hence assured on every build.
Signed-off-by: MichaIng <micha@dietpi.com>
This is default since virtualenv 1.9 from 2013-03-07.
It has been deprecated with 1.11 from 2014-01-02.
It has been removed with 20.0.0 from 2020-02-10.
This change hence drops support virtualenv <1.9
but enables support for v20.0.0 and up.
Reference: https://github.com/mozilla-services/syncserver/issues/239#issuecomment-693430113
Signed-off-by: MichaIng <micha@dietpi.com>
`virtualenv` on Fedora is now a Python3 tool. Without installing
Python3, there is no `virtualenv` tool. Instead, just rely on the
package being installed.