Skip to content

Commit

Permalink
try to reduce size of resulting OCI packages
Browse files Browse the repository at this point in the history
  • Loading branch information
brettlangdon committed Sep 27, 2024
1 parent 41feac6 commit 6ade399
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitlab/prepare-oci-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ BUILD_DIR=sources

echo -n "$PYTHON_PACKAGE_VERSION" > sources/version


echo "Cleaning up binaries for ${ARCH}"
if [ "${ARCH}" == "arm64" ]; then
echo "Removing x86_64 binaries"
find ../pywheels-dep/ -type f -name '*x86_64*' -exec rm -f {} \;
elif [ "${ARCH}" == "amd64" ]; then
echo "Removing aarch64 binaries"
find ../pywheels-dep/ -type f -name '*aarch64*' -exec rm -f {} \;
else
echo "No ARCH set, not removing any binaries"
fi

cp -r ../pywheels-dep/site-packages* sources/ddtrace_pkgs

cp ../lib-injection/sources/* sources/

0 comments on commit 6ade399

Please sign in to comment.