Skip to content

Commit

Permalink
New version for python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinhardy committed Oct 5, 2019
1 parent 8a4b1f2 commit ff1e257
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions createALinuxBinary.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#/bin/bash
GLIBC_VERSION=`ldd --version | grep ldd | grep -o ')[^"]*' | sed "s/) //g"`
VERSION="libc$GLIBC_VERSION-`uname -m`"
PYINSTALLER="/usr/local/bin/pyinstaller" #or "/opt/python2.7.8/bin/pyinstaller"
PYINSTALLER="pyinstaller" #or "/opt/python2.7.8/bin/pyinstaller"
#Creation
if which $PYINSTALLER >/dev/null; then
echo "Pyinstaller has been found: good news :)"
Expand All @@ -13,9 +13,12 @@ mkdir -p ./build/linux/
$PYINSTALLER --clean --onedir --noconfirm --distpath="./build/linux/" --workpath="./build/" --name="odat-$VERSION" odat.py --strip
#Add a librarie manually
cp "$ORACLE_HOME"/lib/libociei.so ./build/linux/odat-$VERSION/libociei.so
cp "$ORACLE_HOME"/lib/libclntsh.so.12.1 ./build/linux/odat-$VERSION/libclntsh.so.12.1
cp "$ORACLE_HOME"/lib/libnnz12.so ./build/linux/odat-$VERSION/libnnz12.so
cp "$ORACLE_HOME"/lib/libons.so ./build/linux/odat-$VERSION/libons.so
#cp "$ORACLE_HOME"/lib/libclntsh.so ./build/linux/odat-$VERSION/libclntsh.so
cp "$ORACLE_HOME"/lib/libnnz19.so ./build/linux/odat-$VERSION/libnnz19.so
cp "$ORACLE_HOME"/lib/libclntshcore.so.19.1 ./build/linux/odat-$VERSION/libclntshcore.so.19.1
cp "$ORACLE_HOME"/lib/libclntsh.so.19.1 ./build/linux/odat-$VERSION/libclntsh.so.19.1
cp /lib64/libaio.so.1 ./build/linux/odat-$VERSION/libaio.so.1
#cp "$ORACLE_HOME"/lib/libons.so ./build/linux/odat-$VERSION/libons.so
#Required files
cp -R accounts/ ./build/linux/odat-$VERSION/accounts
cp sids.txt ./build/linux/odat-$VERSION/sids.txt
Expand Down

0 comments on commit ff1e257

Please sign in to comment.