3 if [ ! -n "${RMFILE}" ]; then
4 RMFILE
="$(command -v rm) -rf"
7 if [ ! -n "${PYTHON}" ]; then
8 PYTHON
="$(command -v python)"
11 if [ ! -n "${MKDIR}" ]; then
12 MKDIR
="$(command -v mkdir) -v"
15 if [ ! -n "${INSTALL}" ]; then
16 INSTALL
="$(command -v install) -v -c"
19 if [ ! -n "${PREFIX}" ]; then
20 PREFIX
=$
(${PYTHON} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib());")
29 printandrun
"test -z \"${1}\" || ${MKDIR} -p \"${1}\""
33 printandrun
"${INSTALL} \"${1}\" \"${2}\""
37 printandrun
"${PYTHON} -m compileall \"${PREFIX}/${1}\""
38 printandrun
"${PYTHON} -O -m compileall \"${PREFIX}/${1}\""
42 echo "Installing Python Moudle upcean";
43 echo "Checking for Python Moudle PIL"
44 ${PYTHON} -c "import PIL"
45 if [ "$?" -ne "0" ]; then
46 echo "Sorry could not find Python Moudle PIL";
49 echo "Checking for Python Moudle ReadLine"
50 ${PYTHON} -c "import readline"
51 if [ "$?" -ne "0" ]; then
52 echo "Sorry could not find Python Moudle ReadLine";
55 testandcreatedir
"${PREFIX}/upcean"
56 for f
in .
/upcean
/*; do
57 installpyfiles
"${f}" "${PREFIX}/upcean/$(basename ${f})"
59 printandrun
"cd \"${PREFIX}\""
61 printandrun
"cd \"${OLDCWD}\""
62 echo "Finished installing Python Moudle upcean";