fi
# initialize apt
-update-manager -c
-
-sudo update-software-center --debug 2>&1 | \
- zenity $icon_opt --title="Updating Software Center Repository" \
- --progress --pulsate --auto-close --auto-kill
+#
+# update-manager (from update-manager-gnome) and
+# update-software-center (from software-center)
+# are present only in wheezy
+if which update-manager > /dev/null; then update-manager -c; fi
+
+if which update-software-center > /dev/null; then
+ sudo update-software-center --debug 2>&1 | \
+ zenity $icon_opt --title="Updating Software Center Repository" \
+ --progress --pulsate --auto-close --auto-kill;
+else
+ sudo apt-get update 2>&1 | \
+ zenity $icon_opt --title="Running apt-get update" \
+ --progress --pulsate --auto-close --auto-kill;
+fi
popconf=/etc/popularity-contest.conf
if [ ! -e "$popconf" ] || grep -q -e '^PARTICIPATE.*no' "$popconf" ;
# ln -f is used for further robustness
[ ! -L $HOME/host ] && ln -sf /media/sf_host $HOME/host
+# Figure out which version of IPython is available
+ipython_version=$(apt-cache policy ipython 2>/dev/null | sed -ne '/Version table:/ { n;s,^[ \*]*\(.*\) .*,\1,gp}')
+dpkg --compare-versions $ipython_version lt 0.13.1 && ipython=ipython01x || ipython=ipython,ipython-notebook,ipython-qtconsole
+
# TODO: add PyMVPA:
# FALSE "PyMVPA" "python-mvpa2,python-mvpa2-doc,python-mvpa2-tutorial-data" \
# needs -doc and -tutorial-data package
additional components will be installed." \
FALSE "Emacs" "emacs" \
FALSE "Graphics (e.g. GIMP, Inscape)" "gimp,inkscape,svgtune,xzgv,vym" \
-FALSE "Octave" "octave,qtoctave" \
+FALSE "Octave" "qtoctave" \
FALSE "OpenOffice.org" "openoffice.org" \
-FALSE "PyMVPA Tutorial" "ipython01x,python-mvpa2,python-mvpa2-doc,python-mvpa2-tutorialdata,spyder" \
+FALSE "PyMVPA Tutorial" "$ipython,python-mvpa2,python-mvpa2-doc,python-mvpa2-tutorialdata,spyder" \
FALSE "Python: Electrophysiology & Modeling" "python-brian,python-pynn,python-pyentropy,stimfit" \
-FALSE "Python: Neuroimaging" "ipython01x,spyder,nipy-suite,python-mvpa2" \
-FALSE "Python: Scientific stack" "ipython01x,spyder,python-matplotlib,python-pandas,python-sympy" \
+FALSE "Python: Neuroimaging" "$ipython,spyder,nipy-suite,python-mvpa2" \
+FALSE "Python: Scientific stack" "$ipython,spyder,python-matplotlib,python-pandas,python-sympy,python-statsmodels,python-skimage" \
FALSE "R" "r-recommended" \
FALSE "TeX Live" "texlive" \
FALSE "Adobe Flash browser plugin" "flashplugin-nonfree" \
-FALSE "Sun Java browser plugin" "sun-java6-plugin" \
|| true)
if [ -n "$packages" ]; then