Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c9316781 authored by w-v's avatar w-v
Browse files

add dockerfile and script to build wheels for manylinux2014

parent ae30b097
No related branches found
No related tags found
No related merge requests found
FROM quay.io/pypa/manylinux2014_x86_64
COPY . /fbxsdkpy
CMD ./buildall.sh
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
set -x set -x
which auditwheel which python
python --version
origdir=$(pwd) origdir=$(pwd)
scdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" scdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
...@@ -17,16 +18,18 @@ ls -1 *.tar.gz|while read a;do tar -xvzf "$a" -C "$builddir";done ...@@ -17,16 +18,18 @@ ls -1 *.tar.gz|while read a;do tar -xvzf "$a" -C "$builddir";done
rm fbx*.tar.gz rm fbx*.tar.gz
# install fbxsdk # install fbxsdk
[ -d "$fbxsdkdir" ] || mkdir "$fbxsdkdir" [ -d "$fbxsdkdir" ] || (mkdir "$fbxsdkdir" && printf "yes\nn\n" |"$builddir"/fbx*fbxsdk_linux "$fbxsdkdir")
printf "yes\nn\n" |"$builddir"/fbx*fbxsdk_linux "$fbxsdkdir"
# install fbxsdk python bindings # install fbxsdk python bindings
[ -d "$fbxpydir" ] || mkdir "$fbxpydir" [ -d "$fbxpydir" ] || (mkdir "$fbxpydir" && printf "yes\nn\n" |"$builddir"/fbx*fbxpythonbindings_linux "$fbxpydir")
printf "yes\nn\n" |"$builddir"/fbx*fbxpythonbindings_linux "$fbxpydir"
# patch sip files and library headers so that they compile with sip5 # patch sip files and library headers so that they compile with sip5
patch -p0 < patch patch -p0 < patch
# patch libfbxsdk.so because it is not linked against libxml2 and libz for some reason
patchelf --add-needed libz.so.1 ${fbxsdkdir}/lib/gcc/x64/release/libfbxsdk.so
patchelf --add-needed libxml2.so.2 ${fbxsdkdir}/lib/gcc/x64/release/libfbxsdk.so
sip-wheel --verbose sip-wheel --verbose
auditwheel repair build/fbx/fbx*.whl LD_LIBRARY_PATH=$(pwd)/build/fbxsdk/lib/gcc/x64/release/:$LD_LIBRARY_PATH auditwheel -v repair $(ls -1t fbx*.whl|head -1)
#!/bin/bash
ifss="$IFS"
IFS=$'\n'
for a in $(ls -d /opt/python/cp3*/);do
PATH=${a}bin/:$PATH python -m pip install sip
PATH=${a}bin/:$PATH ./build.sh
done
IFS="$ifss"
...@@ -6,6 +6,7 @@ build-backend = "sipbuild.api" ...@@ -6,6 +6,7 @@ build-backend = "sipbuild.api"
# Specify the PEP 566 metadata for the project. # Specify the PEP 566 metadata for the project.
[tool.sip.metadata] [tool.sip.metadata]
name = "fbxsdkpy" name = "fbxsdkpy"
version = "2020.1"
# Configure the building of the fib bindings. # Configure the building of the fib bindings.
[tool.sip.bindings.fbx_module] [tool.sip.bindings.fbx_module]
...@@ -17,3 +18,4 @@ library-dirs = ["build/fbxsdk/lib/gcc/x64/release"] ...@@ -17,3 +18,4 @@ library-dirs = ["build/fbxsdk/lib/gcc/x64/release"]
[tool.sip.project] [tool.sip.project]
sip-files-dir = "build/fbxpy/sip" sip-files-dir = "build/fbxpy/sip"
wheel-includes = ["build/fbxpy/common/FbxCommon.py"] wheel-includes = ["build/fbxpy/common/FbxCommon.py"]
mum-glibc-version = "2.17"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment