Skip to content

Commit 2443040

Browse files
committed
Updated .gitignore
1 parent 99e259a commit 2443040

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include/plugins/UnigineUltraleap.h
55
include/plugins/UnigineVarjo.h
66

77
**/python-bin*
8+
*.log
89
linux_UnigineEditorPlugin_Python3Scripting*
910
windows_UnigineEditorPlugin_Python3Scripting*
1011
lib/
@@ -40,6 +41,8 @@ other/
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

source/plugins/Sea5kg/Python3Scripting/build_python.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,28 @@ check_ret() {
1515
fi
1616
}
1717

18+
apt install libffi-dev
19+
1820
cd Python-3.10.1
1921

22+
echo "Configuring Python..."
23+
# LDFLAGS="-static" --disable-shared \
2024
export 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
2835
check_ret $? "Build python"
36+
37+
make LINKFORSHARED=" " install > ../install_python.log 2>&1
38+
check_ret $? "Install python"
39+
2940
if [ -d `pwd`/../../../../../bin/plugins/Sea5kg/Python3Scripting/Python3Home ]; then
3041
rm -rf `pwd`/../../../../../bin/plugins/Sea5kg/Python3Scripting/Python3Home
3142
fi

0 commit comments

Comments
 (0)