Server IP : 127.0.0.2 / Your IP : 18.118.30.3 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#! /bin/sh set -e if [ ! -f /etc/python2.7/sitecustomize.py ]; then cat <<-EOF # Empty sitecustomize.py to avoid a dangling symlink EOF fi case "$1" in configure) # Create empty directories in /usr/local if [ ! -e /usr/local/lib/python2.7 ]; then mkdir -p /usr/local/lib/python2.7 2> /dev/null || true chmod 2775 /usr/local/lib/python2.7 2> /dev/null || true chown root:staff /usr/local/lib/python2.7 2> /dev/null || true fi localsite=/usr/local/lib/python2.7/dist-packages if [ ! -e $localsite ]; then mkdir -p $localsite 2> /dev/null || true chmod 2775 $localsite 2> /dev/null || true chown root:staff $localsite 2> /dev/null || true fi if which update-binfmts >/dev/null; then update-binfmts --import python2.7 fi ;; esac if [ "$1" = configure ]; then if ls -L /usr/lib/python2.7/sitecustomize.py >/dev/null 2>&1; then filt='cat' else filt='fgrep -v sitecustomize.py' fi files=$(dpkg -L libpython2.7-minimal:amd64 \ | sed -n '/^\/usr\/lib\/python2.7\/.*\.py$/p' | $filt) if [ -n "$files" ]; then /usr/bin/python2.7 -E -S /usr/lib/python2.7/py_compile.py $files if grep -sq '^byte-compile[^#]*optimize' /etc/python/debian_config; then /usr/bin/python2.7 -E -S -O /usr/lib/python2.7/py_compile.py $files fi else echo >&2 "python2.7-minimal: can't get files for byte-compilation" fi bc=no if [ -z "$2" ] || dpkg --compare-versions "$2" lt 2.7-9 \ || [ -f /var/lib/python/python2.7_installed ]; then bc=yes fi if grep -sq '^unsupported-versions[^#]*python2.7' /usr/share/python/debian_defaults then # FIXME: byte compile anyway? bc=no fi if [ "$bc" = yes ]; then # new installation or installation of first version with hook support if [ "$DEBIAN_FRONTEND" != noninteractive ]; then echo "Linking and byte-compiling packages for runtime python2.7..." fi version=$(dpkg -s python2.7-minimal | awk '/^Version:/ {print $2}') for hook in /usr/share/python/runtime.d/*.rtinstall; do [ -x $hook ] || continue $hook rtinstall python2.7 "$2" "$version" done if [ -f /var/lib/python/python2.7_installed ]; then rm -f /var/lib/python/python2.7_installed rmdir --ignore-fail-on-non-empty /var/lib/python 2>/dev/null fi fi fi exit 0