/usr/bin/ck is in python3-ck 1.9.4-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #! /bin/bash
# Check if CK_ROOT is defined and used it, otherwise use auto-detected path
if [ -z "$CK_ROOT" ]; then
CK_path1=`dirname $0`
pushd $CK_path1/.. > /dev/null
CK_path=`pwd`
popd > /dev/null
export CK_ROOT=$CK_path
fi
# Load kernel module (either GIT/local installation or as package)
if [ -f "$CK_ROOT/ck/kernel.py" ]; then
if [ "$CK_PYTHON" == "" ]; then
CK_PYTHON=$PYTHON
if [ "$CK_PYTHON" == "" ]; then
CK_PYTHON=python
fi
fi
$CK_PYTHON -W ignore::DeprecationWarning $CK_ROOT/ck/kernel.py "$@"
else
if [ "$CK_PYTHON" == "" ]; then
CK_PYTHON=python
$CK_PYTHON -m ck.kernel test_install &> /dev/null
if [ $? -ne 0 ]; then
CK_PYTHON=python2
$CK_PYTHON -m ck.kernel test_install &> /dev/null
if [ $? -ne 0 ]; then
CK_PYTHON=python3
$CK_PYTHON -m ck.kernel test_install &> /dev/null
fi
fi
fi
if [ $? -ne 0 ]; then
echo "Can't find CK kernel - you may need to set CK_ROOT environment variable manually!"
exit 1
fi
$CK_PYTHON -W ignore::RuntimeWarning -m ck.kernel "$@"
fi
|