Skip to content

Commit

Permalink
change python package
Browse files Browse the repository at this point in the history
  • Loading branch information
stonezdj committed Sep 10, 2018
1 parent 702d6ac commit 76a35ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion jobs/harbor/templates/bin/pre-start.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ HARBOR_VERSION_FILE=$HARBOR_DATA/harbor_version
CFG_FILE=${HARBOR_JOB_DIR}/config/harbor.cfg
CRON_PATH=/etc/cron.d/$JOB_NAME
CERTS_D=/etc/docker/certs.d
PYTHON_CMD=${PACKAGE_DIR}/python/bin/python
PYTHON_CMD=${PACKAGE_DIR}/python/python2.7/bin/python

source $PACKAGE_DIR/harbor-common/common.sh
source $HARBOR_JOB_DIR/bin/properties.sh
Expand Down
3 changes: 0 additions & 3 deletions packages/python/packaging
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ set -e
# wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
tar xzvf ${BOSH_COMPILE_TARGET}/python/Python-2.7.15.tgz
mkdir -p ${BOSH_INSTALL_TARGET}/python2.7
mkdir -p ${BOSH_INSTALL_TARGET}/bin
pushd ${BOSH_COMPILE_TARGET}/Python-2.7.*
./configure --prefix=${BOSH_INSTALL_TARGET}/python2.7
make
make install
cp ${BOSH_INSTALL_TARGET}/python2.7/* ${BOSH_INSTALL_TARGET}/bin
chmod +x ${BOSH_INSTALL_TARGET}/bin/*
popd

0 comments on commit 76a35ca

Please sign in to comment.