-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install Requirements Fails, bad pbr version #246
Comments
Hi, I got the same error, testrepository have to be installed before pbr |
This is not pygradle issue, but we know from experience that pbr can cause issues for people. For example we pin it in our pipeline. This is actually a well known issue with
In pygradle we provide ways to customize both of these. The customization can be applied in build.gradle for a single project, or in a plugin that applies pygradle main python plugin and then adapts the settings for all your projects. That's what we do internally. For example, to use a pbr version that works for you, you can add this in your build.gradle:
That will ensure that pbr is processed by Gradle and pip before the package that needs it is installed, so there will be no need for setuptools to go and fetch it during build. To do the same in your plugin code for every project you could do:
Notice that you can call Similarly to configure how your setup_requires are handled by setuptools (other than pbr) you can define:
or the equivalent setting in your build.gradle |
This does not work for me. Could ypu help me? |
Hello! I've been trying to get pygradle to work, but I'm having a rough time with a bad PBR version buried somewhere in the dependency chain. Here's the output I'm getting:
Everything I can find online points to this version of pbr having a bug that leads to this. Here's a stack overflow post w/ relevant excerpt:
There is a bug with pbr 0.11.0, ... use pbr version 0.11.1 instead
.I'm not actually familiar enough w/ the python toolchain to know how to go track this down though (I looked through setuptools and couldn't find the explicit dependency). Could anyone here help track down what change is actually required here?
Thanks!
The text was updated successfully, but these errors were encountered: