File: python3-pytest.rtinstall

package info (click to toggle)
pytest 2.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,564 kB
  • sloc: python: 16,243; makefile: 162; sh: 68
file content (7 lines) | stat: -rwxr-xr-x 225 bytes parent folder | download
1
2
3
4
5
6
7
#!/bin/sh
set -e
PYVERSION="${2##*python}"
if [ ! -e "/usr/bin/py.test-$PYVERSION" ]; then
    cp /usr/bin/py.test-3 /usr/bin/py.test-$PYVERSION
    sed -i "s,#!/usr/bin/python3,#!/usr/bin/$2," /usr/bin/py.test-$PYVERSION
fi