From 1cfe34d5b7a4be0e96c46090687a9fb3567e7e7d Mon Sep 17 00:00:00 2001 From: Igor Yozhikov Date: Thu, 11 Jul 2013 17:31:57 +0400 Subject: [PATCH] fixed python setup workflow Change-Id: I035db6401315edd81914c030cbfcba6e981dae1e --- setup-centos.sh | 7 +++++++ setup.sh | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/setup-centos.sh b/setup-centos.sh index ad25f5d..a1cd1b4 100644 --- a/setup-centos.sh +++ b/setup-centos.sh @@ -104,6 +104,13 @@ CLONE_FROM_GIT=$1 ## Setup through pip # Creating tarball #cd $GIT_CLONE_DIR/$SERVICE_SRV_NAME && $MRN_CND_SPY sdist + rm -rf $SERVICE_CONTENT_DIRECTORY/*.egg-info + cd $SERVICE_CONTENT_DIRECTORY && python $MRN_CND_SPY egg_info + if [ $? -ne 0 ];then + log "\"$MRN_CND_SPY\" egg info creation FAILS, exiting!!!" + exit 1 + fi + rm -rf $SERVICE_CONTENT_DIRECTORY/dist/* cd $SERVICE_CONTENT_DIRECTORY && $MRN_CND_SPY sdist if [ $? -ne 0 ];then log "\"$MRN_CND_SPY\" tarball creation FAILS, exiting!!!" diff --git a/setup.sh b/setup.sh index 9432870..84577bf 100644 --- a/setup.sh +++ b/setup.sh @@ -105,6 +105,13 @@ CLONE_FROM_GIT=$1 ## Setup through pip # Creating tarball #cd $GIT_CLONE_DIR/$SERVICE_SRV_NAME && $MRN_CND_SPY sdist + rm -rf $SERVICE_CONTENT_DIRECTORY/*.egg-info + cd $SERVICE_CONTENT_DIRECTORY && python $MRN_CND_SPY egg_info + if [ $? -ne 0 ];then + log "\"$MRN_CND_SPY\" egg info creation FAILS, exiting!!!" + exit 1 + fi + rm -rf $SERVICE_CONTENT_DIRECTORY/dist/* cd $SERVICE_CONTENT_DIRECTORY && $MRN_CND_SPY sdist if [ $? -ne 0 ];then log "\"$MRN_CND_SPY\" tarball creation FAILS, exiting!!!"