#!/usr/bin/env bash # This installs P4Python pythonver=${1:-3.5} cd /tmp mkdir p4python cd p4python echo "Downloading P4API and P4Python" wget -q ftp://ftp.perforce.com/perforce/r16.2/bin.tools/p4python.tgz wget -q ftp://ftp.perforce.com/perforce/r17.1/bin.linux26x86_64/p4api.tgz tar xzf p4api.tgz tar xzf p4python.tgz P4PYTHON_PATH=`find /tmp/p4python/ -name "p4python-*"` cd $P4PYTHON_PATH API_PATH=`find /tmp/p4python -name "p4api-*" -type d` mv setup.cfg setup.cfg.bak echo [p4python_config] > setup.cfg echo p4_api=$API_PATH>> setup.cfg echo p4_ssl=/usr/lib>> setup.cfg sudo /usr/local/bin/python$pythonver setup.py install rm -rf /tmp/p4python
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 25113 | Robert Cowham | Merge latest changes from dev | ||
#3 | 22511 | Robert Cowham | Remove temp dir to save space | ||
#2 | 22485 | Robert Cowham |
Update python to 3.5 Refactor tests to simplify workspace (no mapping into root), and to allow easy setup |
||
#1 | 22477 | Robert Cowham | Bring latest dev changes into test | ||
//guest/perforce_software/sdp/dev/test/docker/install-p4python.sh | |||||
#1 | 22385 | Robert Cowham | Fix install of p4python |