File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
source/plugins/Sea5kg/Python3Scripting Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ include/plugins/UnigineUltraleap.h
55include /plugins /UnigineVarjo.h
66
77** /python-bin *
8+ * .log
89linux_UnigineEditorPlugin_Python3Scripting *
910windows_UnigineEditorPlugin_Python3Scripting *
1011lib /
4041** /Python-3.10.1 /python-config.py
4142** /Python-3.10.1 /python-gdb.py
4243** /Python-3.10.1 /python.bat
44+ ** /Python-3.10.1 /** /* .gcda
45+ ** /Python-3.10.1 /profile-run-stamp
4346
4447# Prerequisites
4548* .d
Original file line number Diff line number Diff line change @@ -15,17 +15,28 @@ check_ret() {
1515 fi
1616}
1717
18+ apt install libffi-dev
19+
1820cd Python-3.10.1
1921
22+ echo " Configuring Python..."
23+ # LDFLAGS="-static" --disable-shared \
2024export CFLAGS=" $CFLAGS -fPIC"
25+ export LDFLAGS=" $CFLAGS -rdynamic"
2126./configure \
2227 --enable-optimizations \
2328 --prefix=` pwd` /../python-bin-linux \
24- --with-static-libpython
25- check_ret $? " Configure python"
29+ --libdir=` pwd` /../python-bin-linux/lib \
30+ --with-static-libpython > ../configure_python.log 2>&1
31+ check_ret $? " Configured python"
2632
27- make install
33+ # make -j8 LDFLAGS="-static" LINKFORSHARED=" " > ../build_python.log 2>&1
34+ make -j8 LINKFORSHARED=" " > ../build_python.log 2>&1
2835check_ret $? " Build python"
36+
37+ make LINKFORSHARED=" " install > ../install_python.log 2>&1
38+ check_ret $? " Install python"
39+
2940if [ -d ` pwd` /../../../../../bin/plugins/Sea5kg/Python3Scripting/Python3Home ]; then
3041 rm -rf ` pwd` /../../../../../bin/plugins/Sea5kg/Python3Scripting/Python3Home
3142fi
You can’t perform that action at this time.
0 commit comments