Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fbxsdk_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ADILI Robin
fbxsdk_python
Commits
c9316781
Commit
c9316781
authored
4 years ago
by
w-v
Browse files
Options
Downloads
Patches
Plain Diff
add dockerfile and script to build wheels for manylinux2014
parent
ae30b097
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Dockerfile
+5
-0
5 additions, 0 deletions
Dockerfile
build.sh
+9
-6
9 additions, 6 deletions
build.sh
buildall.sh
+10
-0
10 additions, 0 deletions
buildall.sh
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
with
26 additions
and
6 deletions
Dockerfile
0 → 100644
+
5
−
0
View file @
c9316781
FROM
quay.io/pypa/manylinux2014_x86_64
COPY
. /fbxsdkpy
CMD
./buildall.sh
This diff is collapsed.
Click to expand it.
build.sh
+
9
−
6
View file @
c9316781
...
...
@@ -2,7 +2,8 @@
set
-x
which auditwheel
which python
python
--version
origdir
=
$(
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
rm
fbx
*
.tar.gz
# install fbxsdk
[
-d
"
$fbxsdkdir
"
]
||
mkdir
"
$fbxsdkdir
"
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxsdk_linux
"
$fbxsdkdir
"
[
-d
"
$fbxsdkdir
"
]
||
(
mkdir
"
$fbxsdkdir
"
&&
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxsdk_linux
"
$fbxsdkdir
"
)
# install fbxsdk python bindings
[
-d
"
$fbxpydir
"
]
||
mkdir
"
$fbxpydir
"
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxpythonbindings_linux
"
$fbxpydir
"
[
-d
"
$fbxpydir
"
]
||
(
mkdir
"
$fbxpydir
"
&&
printf
"yes
\n
n
\n
"
|
"
$builddir
"
/fbx
*
fbxpythonbindings_linux
"
$fbxpydir
"
)
# patch sip files and library headers so that they compile with sip5
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
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
)
This diff is collapsed.
Click to expand it.
buildall.sh
0 → 100755
+
10
−
0
View file @
c9316781
#!/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
"
This diff is collapsed.
Click to expand it.
pyproject.toml
+
2
−
0
View file @
c9316781
...
...
@@ -6,6 +6,7 @@ build-backend = "sipbuild.api"
# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
name
=
"fbxsdkpy"
version
=
"2020.1"
# Configure the building of the fib bindings.
[tool.sip.bindings.fbx_module]
...
...
@@ -17,3 +18,4 @@ library-dirs = ["build/fbxsdk/lib/gcc/x64/release"]
[tool.sip.project]
sip-files-dir
=
"build/fbxpy/sip"
wheel-includes
=
[
"build/fbxpy/common/FbxCommon.py"
]
mum-glibc-version
=
"2.17"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment