[Python-modules-commits] r19656 - in packages/ipython/trunk/debian (control rules)
jtaylor-guest at users.alioth.debian.org
jtaylor-guest at users.alioth.debian.org
Mon Dec 19 20:11:35 UTC 2011
Date: Monday, December 19, 2011 @ 20:11:32
Author: jtaylor-guest
Revision: 19656
add python3 package for base ipython
Modified:
packages/ipython/trunk/debian/control
packages/ipython/trunk/debian/rules
Modified: packages/ipython/trunk/debian/control
===================================================================
--- packages/ipython/trunk/debian/control 2011-12-19 20:11:28 UTC (rev 19655)
+++ packages/ipython/trunk/debian/control 2011-12-19 20:11:32 UTC (rev 19656)
@@ -58,6 +58,22 @@
verbose and colored traceback reports, auto-parentheses, auto-quoting,
and is embeddable in other Python programs.
+Package: ipython3
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends}
+Description: enhanced interactive Python shell
+ IPython can be used as a replacement for the standard Python shell,
+ or it can be used as a complete working environment for scientific
+ computing (like Matlab or Mathematica) when paired with the standard
+ Python scientific and numerical tools. It supports dynamic object
+ introspections, numbered input/output prompts, a macro system,
+ session logging, session restoring, complete system shell access,
+ verbose and colored traceback reports, auto-parentheses, auto-quoting,
+ and is embeddable in other Python programs.
+ .
+ Python3 version
+
Package: ipython-qtconsole
Architecture: all
Depends: ipython (= ${binary:Version}),
Modified: packages/ipython/trunk/debian/rules
===================================================================
--- packages/ipython/trunk/debian/rules 2011-12-19 20:11:28 UTC (rev 19655)
+++ packages/ipython/trunk/debian/rules 2011-12-19 20:11:32 UTC (rev 19656)
@@ -1,13 +1,14 @@
#!/usr/bin/make -f
#export DH_VERBOSE=1
PYVERS = $(shell pyversions -rv)
+PY3VERS = $(shell py3versions -r)
override_dh_compress:
# make sure the documentation stays usable.
dh_compress -Xhtml/
%:
- dh $@ --with python2,sphinxdoc
+ dh $@ --with python2,python3,sphinxdoc
override_dh_auto_clean:
rm -f test_hist.sqlite
@@ -16,6 +17,9 @@
override_dh_auto_build:
dh_auto_build -- --executable '/usr/bin/env python'
+ set -e && for pyvers in $(PY3VERS); do \
+ $$pyvers setup.py build --executable '/usr/bin/env python3'; \
+ done
ifeq (,$(filter nodocs,$(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR) $(MAKE) -C $(CURDIR)/docs html
endif
@@ -30,6 +34,13 @@
done
endif
+override_dh_auto_install:
+ dh_auto_install
+ set -e && for pyvers in $(PY3VERS); do \
+ $$pyvers setup.py install --install-layout=deb \
+ --force --no-compile -O0 --root=$(CURDIR)/debian/tmp; \
+ done
+
override_dh_install:
dh_install -pipython --exclude="IPython/parallel/" \
--exclude="IPython/frontend/qt/" \
@@ -39,6 +50,11 @@
dh_install -pipython-parallel IPython/parallel/ usr/share/pyshared/IPython
dh_install -pipython-notebook IPython/frontend/html/ usr/share/pyshared/IPython/frontend
dh_install -pipython-qtconsole IPython/frontend/qt/ usr/share/pyshared/IPython/frontend
+ dh_install -pipython3 --exclude="IPython/parallel/" \
+ --exclude="IPython/frontend/qt/" \
+ --exclude="IPython/frontend/html/" \
+ --exclude="IPython/deathrow/" \
+ --exclude="IPython/quarantine/"
mkdir -p $(CURDIR)/debian/ipython/usr/share/icons/hicolor/scalable/apps/
cp IPython/frontend/qt/console/resources/icon/IPythonConsole.svg \
@@ -82,6 +98,7 @@
override_dh_installdocs:
ifeq (,$(filter nodocs,$(DEB_BUILD_OPTIONS)))
dh_installdocs -pipython
+ dh_installdocs -pipython3
dh_installdocs -pipython-parallel --link-doc=ipython
dh_installdocs -pipython-qtconsole --link-doc=ipython
dh_installdocs -pipython-notebook --link-doc=ipython
More information about the Python-modules-commits
mailing list