This had been solved in
Note that this fix will only work out of the box since Xenial because Trusty’s stock Pip is too old to support the option, you’d need to upgrade it first (e.g. at the before_install: phase if you use the default install: command).