From 7878748c4b40d05e606956c1aeb22120d67cf72b Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Mon, 12 Aug 2024 08:26:41 -0400 Subject: [PATCH] GP-4838: Keep track of used python dependencies --- build.gradle | 5 +++-- gradle/hasPythonPackage.gradle | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6af4593b1c..63c3f48280 100644 --- a/build.gradle +++ b/build.gradle @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -51,6 +51,7 @@ if ("32".equals(System.getProperty("sun.arch.data.model"))) { ***************************************************************************************/ project.ext.SUPPORTED_PY_VERSIONS = ['3.12', '3.11', '3.10', '3.9', '3.8', '3.7'] project.ext.PYTHON3 = findPython3() +project.ext.PYTHON_DEPS = new HashSet() /********************************************************************************* * Define the location of bin repo diff --git a/gradle/hasPythonPackage.gradle b/gradle/hasPythonPackage.gradle index ef1fc91276..e073e37fc7 100644 --- a/gradle/hasPythonPackage.gradle +++ b/gradle/hasPythonPackage.gradle @@ -77,6 +77,7 @@ rootProject.assembleDistribution { ext.distributePyDep = { name -> File dep = findPyDep(name) + PYTHON_DEPS.add(dep) def zipPath = getZipPath(project) rootProject.assembleDistribution { into ("${zipPath}/pypkg/dist") {