Skip to content

Commit

Permalink
patch ThriftSerializationContext.py for python2.7 type long for rpmbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
mjames-upc committed Sep 10, 2018
1 parent f587b01 commit f402f82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions component.spec
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,26 @@ fi
mkdir -p %{_python_build_loc}

%build
AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
cp -R ${AWIPS_SRC_DIR} %{_python_build_loc}/
source /etc/profile.d/awips2.sh
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi

source /etc/profile.d/awips2.sh
AWIPS_SRC_DIR="%{_baseline_workspace}/python-awips"
cp -R ${AWIPS_SRC_DIR} %{_python_build_loc}/
RC=$?
if [ ${RC} -ne 0 ]; then
exit 1
fi

pushd . > /dev/null
cd %{_python_build_loc}/python-awips

## Apply patch
patch dynamicserialize/ThriftSerializationContext.py patch.diff
cat dynamicserialize/ThriftSerializationContext.py |grep long

pushd . > /dev/null
/awips2/python/bin/python setup.py clean
RC=$?
if [ ${RC} -ne 0 ]; then
Expand Down
File renamed without changes.

0 comments on commit f402f82

Please sign in to comment.