[pypy-dev] issue772 install permissions fix, was: newbie needs pypy setup help
Tom Roche
Tom_Roche at pobox.com
Mon Aug 1 15:56:45 CEST 2011
Janzert Sun, 31 Jul 2011 16:18:32 -0400
>> https://bugs.pypy.org/issue772
Antonio Cuni Mon, 01 Aug 2011 09:59:00 +0200
> could you please check that the permission issue is actually fixed in
> the nightly tarballs?
It is currently: the tail of the output from
BUILD_NAME="pypy-c-jit-latest-linux64"
BUILD_TAG="pypy-c-jit-46097-54515dec1d20-linux64"
URI="http://buildbot.pypy.org/nightly/trunk/${BUILD_NAME}.tar.bz2"
TMP_DIR_ROOT="/tmp/pypy/${BUILD_TAG}"
TARGET_DIR_ROOT="/opt/${BUILD_NAME}"
TARGET_PYPY_EXEC="${TARGET_DIR_ROOT}/bin/pypy"
USR_PYPY_EXEC="/usr/local/bin/pypy"
# "sudo chmod -R go+rX ${TARGET_DIR_ROOT}/" \
for CMD in \
"rm -fr $(dirname ${TMP_DIR_ROOT})" \
"mkdir -p ${TMP_DIR_ROOT}" \
"pushd $(dirname ${TMP_DIR_ROOT})" \
"wget -O - ${URI} | tar xvjf -" \
"ls -alh" \
"popd" \
"sudo rm -fr ${TARGET_DIR_ROOT}" \
"sudo mkdir -p ${TARGET_DIR_ROOT}" \
"sudo cp -r ${TMP_DIR_ROOT}/* ${TARGET_DIR_ROOT}/" \
"sudo ln -s ${TARGET_PYPY_EXEC} ${USR_PYPY_EXEC}" \
"which pypy" \
"sudo ls -al ${USR_PYPY_EXEC}" \
"${USR_PYPY_EXEC} --version" \
"sudo ls -al ${TARGET_DIR_ROOT}" \
"pypy --version" \
"pypy" \
"popd" \
; do
echo -e "$ ${CMD}"
eval "${CMD}"
done
is
> $ sudo ls -al /opt/pypy-c-jit-latest-linux64
> total 40
> drwxr-xr-x 7 root root 4096 2011-08-01 09:47 .
> drwxr-xr-x 9 root root 4096 2011-08-01 09:47 ..
> drwxr-xr-x 2 root root 4096 2011-08-01 09:47 bin
> drwxr-xr-x 2 root root 4096 2011-08-01 09:47 include
> drwxr-xr-x 7 root root 4096 2011-08-01 09:47 lib_pypy
> drwxr-xr-x 4 root root 4096 2011-08-01 09:47 lib-python
> -rw-r--r-- 1 root root 7462 2011-08-01 09:47 LICENSE
> -rw-r--r-- 1 root root 735 2011-08-01 09:47 README
> drwxr-xr-x 2 root root 4096 2011-08-01 09:47 site-packages
> $ pypy --version
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3]
> $ pypy
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> And now for something completely different: ``don't trip on the power cord''
> >>>>
HTH, Tom Roche <Tom_Roche at pobox.com>
More information about the pypy-dev
mailing list