3

私はdhpython 3用のパッケージを作成するのに苦労しています(python 2用ではありません)。setup.pyで呼び出すとpython3、python 3 用にビルドする whichを使用しますdebian。py3k 用に別のディレクトリがあるので、そのバージョンだけをビルドしたいと思います。

debian/rules次のようになります。

export DH_VERBOSE=1
%:
    dh $@ --with python3

以下をdebian/control含むすべての通常のものがありますX-Python3-Version

Source: woo
Maintainer: Václav Šmilauer <eu@doxos.eu>
Section: python
Priority: optional
Build-Depends: python3-setuptools (>= 0.6b3), python3-all, python3-all-dev, debhelper (>= 7.4.3), libboost-all-dev, pyqt4-dev-tools, libqt4-dev, libqt4-dev-bin, qt4-dev-tools, libgle3-dev, libqglviewer-qt4-dev | libqglviewer-dev, libvtk5-dev, libgts-dev, libeigen3-dev, freeglut3-dev
X-Python3-Version: >= 3.4
Standards-Version: 3.9.1

Package: python3-woo
Architecture: any
Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}, python3-xlrd, python3-xlwt, python3-numpy, python3-matplotlib, python3-colorama, python3-qt4, python3-xlib, python3-genshi, python3-psutil, python3-minieigen, python3-imaging, python3-h5py, python3-lockfile, ipython3, mencoder | libav-tools | ffmpeg, python3-prettytable
Description: Discrete dynamic compuations, esp. granular mechanics (python 3)
 ...

今私が実行するとfakeroot debian/rules binary、にもかかわらず、ではなくでsetup.py実行されます:pythonpython3--with python3

$ fakeroot debian/rules binary
dh binary --with python3
   dh_auto_build
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
    python setup.py build --force
[...]

どうしたの?

4

1 に答える 1

4

解決策は、次のようにに追加することでした--buildsystem=pybuilddebian/rules

%:
    dh $@ --with python3 --buildsystem=pybuild
于 2015-02-24T15:43:08.067 に答える