fixed python setup workflow
Change-Id: I035db6401315edd81914c030cbfcba6e981dae1e
This commit is contained in:
parent
ca27fe58a6
commit
1cfe34d5b7
@ -104,6 +104,13 @@ CLONE_FROM_GIT=$1
|
|||||||
## Setup through pip
|
## Setup through pip
|
||||||
# Creating tarball
|
# Creating tarball
|
||||||
#cd $GIT_CLONE_DIR/$SERVICE_SRV_NAME && $MRN_CND_SPY sdist
|
#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
|
cd $SERVICE_CONTENT_DIRECTORY && $MRN_CND_SPY sdist
|
||||||
if [ $? -ne 0 ];then
|
if [ $? -ne 0 ];then
|
||||||
log "\"$MRN_CND_SPY\" tarball creation FAILS, exiting!!!"
|
log "\"$MRN_CND_SPY\" tarball creation FAILS, exiting!!!"
|
||||||
|
7
setup.sh
7
setup.sh
@ -105,6 +105,13 @@ CLONE_FROM_GIT=$1
|
|||||||
## Setup through pip
|
## Setup through pip
|
||||||
# Creating tarball
|
# Creating tarball
|
||||||
#cd $GIT_CLONE_DIR/$SERVICE_SRV_NAME && $MRN_CND_SPY sdist
|
#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
|
cd $SERVICE_CONTENT_DIRECTORY && $MRN_CND_SPY sdist
|
||||||
if [ $? -ne 0 ];then
|
if [ $? -ne 0 ];then
|
||||||
log "\"$MRN_CND_SPY\" tarball creation FAILS, exiting!!!"
|
log "\"$MRN_CND_SPY\" tarball creation FAILS, exiting!!!"
|
||||||
|
Loading…
Reference in New Issue
Block a user