[Python-modules-commits] [pyvisa-py] 03/03: Added python3 package
Ruben Undheim
rubund-guest at moszumanska.debian.org
Mon Mar 16 18:07:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
rubund-guest pushed a commit to branch master
in repository pyvisa-py.
commit 2a4beecd649fd6989021fedfde8fa3a19eb1bbd7
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date: Mon Mar 16 19:03:28 2015 +0100
Added python3 package
---
debian/control | 19 ++++++++++++++++++-
debian/{docs => python-pyvisa-py.docs} | 0
debian/{install => python-pyvisa-py.install} | 1 +
debian/{docs => python3-pyvisa-py.docs} | 0
debian/python3-pyvisa-py.install | 2 ++
debian/rules | 16 +++++++++++++++-
6 files changed, 36 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 6264908..feb096f 100644
--- a/debian/control
+++ b/debian/control
@@ -3,9 +3,15 @@ Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Ruben Undheim <ruben.undheim at gmail.com>
-Build-Depends: debhelper (>= 9), dh-python, python-setuptools, python
+Build-Depends: debhelper (>= 9),
+ dh-python,
+ python-all,
+ python-setuptools,
+ python3-all,
+ python3-setuptools
Standards-Version: 3.9.6
X-Python-Version: all
+X-Python3-Version: >= 3.1
Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/pyvisa-py.git
Vcs-Git: git://anonscm.debian.org/python-modules/packages/pyvisa-py.git
Homepage: https://github.com/hgrecco/pyvisa-py
@@ -18,3 +24,14 @@ Description: Backend that implements a large part of the VISA in pure Python
install National Instruments VISA library in your system. This works most of
the time, for most people. But NI-VISA is a proprietary library that only works
on certain systems. That is when PyVISA-py jumps in.
+
+Package: python3-pyvisa-py
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}, python3-pyvisa
+Description: Backend that implements a large part of the VISA in pure Python3
+ PyVISA started as wrapper for the NI-VISA library and therefore you need to
+ install National Instruments VISA library in your system. This works most of
+ the time, for most people. But NI-VISA is a proprietary library that only works
+ on certain systems. That is when PyVISA-py jumps in.
+ .
+ This package provides Python3 bindings for pyvisa-py.
diff --git a/debian/docs b/debian/python-pyvisa-py.docs
similarity index 100%
copy from debian/docs
copy to debian/python-pyvisa-py.docs
diff --git a/debian/install b/debian/python-pyvisa-py.install
similarity index 74%
rename from debian/install
rename to debian/python-pyvisa-py.install
index 4d3817a..0e608fb 100644
--- a/debian/install
+++ b/debian/python-pyvisa-py.install
@@ -1 +1,2 @@
+usr/lib/python2*/
docs/*.rst usr/share/doc/python-pyvisa-py/manual/rst
diff --git a/debian/docs b/debian/python3-pyvisa-py.docs
similarity index 100%
rename from debian/docs
rename to debian/python3-pyvisa-py.docs
diff --git a/debian/python3-pyvisa-py.install b/debian/python3-pyvisa-py.install
new file mode 100644
index 0000000..0c009f2
--- /dev/null
+++ b/debian/python3-pyvisa-py.install
@@ -0,0 +1,2 @@
+usr/lib/python3*/
+docs/*.rst usr/share/doc/python3-pyvisa-py/manual/rst
diff --git a/debian/rules b/debian/rules
index af543ed..391c8a1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,9 +2,23 @@
#DH_VERBOSE = 1
%:
- dh $@ --with python2
+ dh $@ --with python2,python3 --buildsystem=python_distutils
override_dh_auto_clean:
$(RM) -r PyVISA_py.egg-info
+ $(RM) -r build
dh_auto_clean
+override_dh_auto_build:
+ dh_auto_build
+ set -ex; for python in $(shell py3versions -r); do \
+ $$python setup.py build; \
+ done
+
+override_dh_auto_install:
+ dh_auto_install
+ set -ex; for python in $(shell py3versions -r); do \
+ $$python setup.py install --install-layout=deb \
+ --root $(CURDIR)/debian/tmp; \
+ done;
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pyvisa-py.git
More information about the Python-modules-commits
mailing list