[spyder] 01/01: install the data path under /usr/share/spyder
Frédéric-Emmanuel Picca
picca at moszumanska.debian.org
Fri Apr 11 12:07:27 UTC 2014
This is an automated email from the git hooks/post-receive script.
picca pushed a commit to branch experimental
in repository spyder.
commit 6ee23b753b5d216e5a3c7567cf73099ed7cf5acd
Author: Frédéric-Emmanuel PICCA <picca at synchrotron-soleil.fr>
Date: Fri Apr 11 13:52:32 2014 +0200
install the data path under /usr/share/spyder
---
debian/changelog | 3 +++
debian/control | 26 ++++++++++++++++++----
...llation.patch => 0001-fix-spyderlib-path.patch} | 16 +++++++------
debian/patches/series | 2 +-
debian/python-spyderlib.pyremove | 2 ++
debian/python3-spyderlib.pyremove | 2 ++
debian/rules | 12 +++++++++-
7 files changed, 50 insertions(+), 13 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index a906e8a..b80c91d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ spyder (2.3.0~beta4+dfsg-1) UNRELEASED; urgency=low
* Bump Standards-Version to 3.9.5 (no changes required)
* Use compat level 9
* upstream code moved from google code to bitbucket
+ * debian/path
+ - 0001-fix-documentation-installation.patch (deleted)
+ + 0001-fix-spyderlib-path.patch (new)
-- Picca Frédéric-Emmanuel <picca at debian.org> Thu, 26 Dec 2013 09:05:26 +0200
diff --git a/debian/control b/debian/control
index fe10d30..5f077d8 100644
--- a/debian/control
+++ b/debian/control
@@ -18,8 +18,8 @@ Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/spyder.git
Vcs-Git: git://anonscm.debian.org/debian-science/packages/spyder.git
Homepage: http://code.google.com/p/spyderlib/
-X-Python-Version: >= 2.6
-X-Python3-Version: >= 3.3
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.2
Package: spyder
Architecture: all
@@ -41,7 +41,8 @@ Depends: ${misc:Depends},
${python:Depends},
libjs-jquery,
libjs-mathjax,
- python-qt4
+ python-qt4,
+ spyder-common
Recommends: ipython-qtconsole,
pep8,
pyflakes (>= 0.5.0),
@@ -106,7 +107,8 @@ Depends: ${misc:Depends},
${python3:Depends},
libjs-jquery,
libjs-mathjax,
- python3-pyqt4
+ python3-pyqt4,
+ spyder-common
Recommends: ipython-qtconsole,
python3-pep8,
pyflakes (>= 0.5.0),
@@ -131,3 +133,19 @@ Description: python IDE for scientists (Python 3)
v2.2).
.
This is the Python 3 version of the package.
+
+Package: spyder-common
+Architecture: all
+Section: python
+Depends: ${misc:Depends}
+Provides: ${python3:Provides}
+Description: python IDE for scientists (common files)
+ Originally written to design Spyder (the Scientific PYthon
+ Development EnviRonment), the spyderlib Python library provides
+ ready-to-use pure-Python widgets: source code editor with syntax
+ highlighting and code introspection/analysis features, NumPy array
+ editor, dictionary editor, Python console, etc. It's based on the Qt
+ Python binding module PyQt4 (and is compatible with PySide since
+ v2.2).
+ .
+ This is the common files of the package.
diff --git a/debian/patches/0001-fix-documentation-installation.patch b/debian/patches/0001-fix-spyderlib-path.patch
similarity index 60%
rename from debian/patches/0001-fix-documentation-installation.patch
rename to debian/patches/0001-fix-spyderlib-path.patch
index bd7a23b..8e9d6f7 100644
--- a/debian/patches/0001-fix-documentation-installation.patch
+++ b/debian/patches/0001-fix-spyderlib-path.patch
@@ -1,19 +1,21 @@
-From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca at debian.org>
-Date: Sun, 1 Apr 2012 10:08:11 +0200
-Subject: fix-documentation-installation
+From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric-Emmanuel=20PICCA?=
+ <picca at synchrotron-soleil.fr>
+Date: Fri, 11 Apr 2014 09:14:40 +0200
+Subject: fix-spyderlib-path
---
- spyderlib/__init__.py | 3 +++
- 1 file changed, 3 insertions(+)
+ spyderlib/__init__.py | 4 ++++
+ 1 file changed, 4 insertions(+)
diff --git a/spyderlib/__init__.py b/spyderlib/__init__.py
-index bd7a029..28d5de0 100644
+index ebb5469..718fc81 100644
--- a/spyderlib/__init__.py
+++ b/spyderlib/__init__.py
-@@ -35,6 +35,9 @@ __forum_url__ = 'http://groups.google.com/group/spyderlib'
+@@ -35,6 +35,10 @@ __forum_url__ = 'http://groups.google.com/group/spyderlib'
# Dear (Debian, RPM, ...) package makers, please feel free to customize the
# following path to module's data (images) and translations:
DATAPATH = LOCALEPATH = DOCPATH = MATHJAXPATH = JQUERYPATH = ''
++DATAPATH = '/usr/share/spyderlib/images'
+DOCPATH = '/usr/share/doc/python-spyderlib-doc/html'
+MATHJAXPATH = '/usr/share/javascript/mathjax'
+JQUERYPATH = '/usr/share/javascript/jquery'
diff --git a/debian/patches/series b/debian/patches/series
index d88d3bc..ba8e634 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-0001-fix-documentation-installation.patch
+0001-fix-spyderlib-path.patch
diff --git a/debian/python-spyderlib.pyremove b/debian/python-spyderlib.pyremove
new file mode 100644
index 0000000..90bd155
--- /dev/null
+++ b/debian/python-spyderlib.pyremove
@@ -0,0 +1,2 @@
+spyderlib/images
+spyderplugins/images
diff --git a/debian/python3-spyderlib.pyremove b/debian/python3-spyderlib.pyremove
new file mode 100644
index 0000000..4864560
--- /dev/null
+++ b/debian/python3-spyderlib.pyremove
@@ -0,0 +1,2 @@
+/spyderlib/images/*
+/spyderplugins/images/*
diff --git a/debian/rules b/debian/rules
index 706f5bf..b5ab4cc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,9 @@
#!/usr/bin/make -f
# -*- makefile -*-
+# used only until dh_python3 pyremove is backported for wheezy
+PY3VERS := $(shell py3versions -vr)
+
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export PYBUILD_NAME=spyderlib
@@ -17,16 +20,23 @@ override_dh_auto_build:
override_dh_auto_install:
dh_auto_install
+ # install the spyder-common files
+ dh_install -p spyder-common spyderlib/images usr/share/spyderlib
+ dh_install -p spyder-common spyderplugins/images usr/share/spyderplugins
# install the spyder files
dh_install --sourcedir=$(CURDIR)/debian/python-spyderlib -p spyder usr/bin
dh_install --sourcedir=$(CURDIR)/debian/python-spyderlib -p spyder usr/share/applications/spyder.desktop
rm -rf $(CURDIR)/debian/python-spyderlib/usr/bin
rm -rf $(CURDIR)/debian/python-spyderlib/usr/share/applications
rm -f $(CURDIR)/debian/spyder/usr/bin/*.py
-
# install the spyder3 files
dh_install --sourcedir=$(CURDIR)/debian/python3-spyderlib -p spyder3 usr/bin
dh_install --sourcedir=$(CURDIR)/debian/python3-spyderlib -p spyder3 usr/share/applications/spyder3.desktop
rm -rf $(CURDIR)/debian/python3-spyderlib/usr/bin
rm -rf $(CURDIR)/debian/python3-spyderlib/usr/share/applications
rm -f $(CURDIR)/debian/spyder3/usr/bin/*.py
+ # remove unwanted files until dh_python3 pyremove is backported to wheezy
+ for v in $(PY3VERS); do \
+ rm -rf $(CURDIR)/debian/python3-spyderlib/usr/lib/python$$v/dist-packages/spyderlib/images ;\
+ rm -rf $(CURDIR)/debian/python3-spyderlib/usr/lib/python$$v/dist-packages/spyderplugins/images ;\
+ done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/spyder.git
More information about the debian-science-commits
mailing list