Files
UnrealEngineUWP/Engine/Source/ThirdParty/Python/Build/Linux/build_python_linux.sh
Chris Gagnon a48e767b94 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4835066 by Chris Gagnon in Dev-Editor branch]
2019-01-29 16:15:19 -05:00

51 lines
907 B
Bash
Executable File

#!/bin/sh
#####################
# configuration
# library versions - expected to match tarball and directory names
VER=Python-2.7.14
# don't forget to match archive options with tarball type (bz/gz)
TARBALL=$VER.tar.xz
DEST_DIR=`pwd`
#####################
# unpack
echo "#######################################"
echo "# Unpacking the tarballs"
tar xf $TARBALL
#####################
# build
pushd $VER
echo "#######################################"
echo "# Configuring $VER"
CPPFLAGS="-fPIC" ./configure --enable-optimizations --enable-shared
echo "# Building $VER"
make -j36
if [ $? -ne 0 ]; then
echo ""
echo "#######################################"
echo "# ERROR!"
echo ""
exit 1
fi
make install DESTDIR=$DEST_DIR
if [ $? -ne 0 ]; then
echo ""
echo "#######################################"
echo "# ERROR!"
echo ""
exit 1
fi
popd
pushd usr/local
tar czvf ../../Python-Linux.tar.gz *