xvik / gradle-use-python-plugin

Use python modules in gradle build

Home Page:https://xvik.github.io/gradle-use-python-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility issue with pip 10.0.0

sandrogattuso opened this issue · comments

Looks like the 'checkPython' fails with the following error when pip 10.0.0 is installed
AttributeError: 'module' object has no attribute 'parseopts'
....
causing the task not to be able to use pip
Execution failed for task ':checkPython'. org.gradle.api.GradleException: Pip is not installed on virtualenv .gradle/python. Please install it (https://pip.pypa.io/en/stable/installing/).

I've tested the same build.gradle with pip 9.0.3 and it works perfectly.

Happy to provide further information if needed

Thank you!
In pip 10 all functions were moved to _internal package.. it was a bad idea to rely on pip's functions.

If ci builds will be ok now I'll release it.

@xvik thanks for the super quick fix. I've tested it on my side and it works 👍