#!/bin/bash
project=$1
config_server=$2
project_path=$3
ip=$4

params=`node $config_server/get_project_config.js  -name $project -attr desc/config_file`
params_arry=(${params//|/ })
desc=${params_arry[0]}
config_file=${params_arry[1]}

sh $config_server/show_info.sh $project BUILD $desc $ip

cd $project_path/$project
setup_path_temp=`find ./ -name "setup.py"`
python ${setup_path_temp} install
#第四步  关联配置文件
#rm -rf $config_file
#ln -s $config_path/python/$project.*  $config_file
