From 70820402d74e29e35631fbba169eedd6f7e14ecf Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Wed, 14 May 2025 12:01:03 -0400 Subject: [PATCH] GP-0: Making build fail if "UNKNOWN" wheel is produced due to old pip. --- gradle/hasPythonPackage.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gradle/hasPythonPackage.gradle b/gradle/hasPythonPackage.gradle index 6e7ea6d6cd..8e46f02839 100644 --- a/gradle/hasPythonPackage.gradle +++ b/gradle/hasPythonPackage.gradle @@ -65,6 +65,9 @@ task buildPyPackage { if (exec.result.get().exitValue != 0) { throw new GradleException(exec.standardError.asText.get().strip()) } + if (exec.standardOutput.asText.get().contains("Successfully built UNKNOWN")) { + throw new GradleException("UNKNOWN wheel built...upgrade pip") + } } }