Skip to content

Commit

Permalink
Merge pull request #1026 from austinmatherne-wk/linux-build-pillow-10…
Browse files Browse the repository at this point in the history
….2.0-support

Fix Linux Build
  • Loading branch information
stevenbronson-wk committed Jan 5, 2024
2 parents 78e01bb + 2d47a47 commit 0975615
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docker/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use oldest release with standard support for linked glibc compatibility
FROM ubuntu:18.04
FROM ubuntu:20.04

ARG OPENSSL_VERSION
ARG PYTHON_VERSION
Expand Down
19 changes: 10 additions & 9 deletions scripts/buildLinuxDist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ cp -p arelle/scripts-unix/* "${DISTRO_DIR}/"
cp -pR libs/linux/Tktable2.11 "${DISTRO_DIR}/lib/"

SITE_PACKAGES=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
cp -pR "${SITE_PACKAGES}/mpl_toolkits" "${DISTRO_DIR}/lib/"
cp -pR "${SITE_PACKAGES}/numpy.libs" "${DISTRO_DIR}/lib/"
cp -pR "${SITE_PACKAGES}/Pillow.libs" "${DISTRO_DIR}/lib/"

cp -p "$(find /lib /usr -name libexslt.so.0)" "${DISTRO_DIR}/"
cp -p "$(find /lib /usr -name libxml2.so)" "${DISTRO_DIR}/"
cp -p "$(find /lib /usr -name libxml2.so.2)" "${DISTRO_DIR}/"
cp -p "$(find /lib /usr -name libxslt.so.1)" "${DISTRO_DIR}/"
cp -p "$(find /lib /usr -name libz.so.1)" "${DISTRO_DIR}/"

for pythonLib in "mpl_toolkits" "numpy.libs" "pillow.libs"; do
pythonLibFullPath=$(find "${SITE_PACKAGES}" -maxdepth 1 -type d -iname "${pythonLib}")
cp -pR "${pythonLibFullPath}" "${DISTRO_DIR}/lib/"
done

for lib in "libexslt.so.0" "libxml2.so" "libxml2.so.2" "libxslt.so.1" "libz.so.1"; do
libFullPath=$(find /lib /usr -name ${lib})
cp -p "${libFullPath}" "${DISTRO_DIR}/"
done

VERSION=$(python3 -c "import arelle._version; print(arelle._version.version)")

Expand Down

0 comments on commit 0975615

Please sign in to comment.