Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x debhelper被指示使用python3,但使用python2运行setup.py_Python 3.x_Debian_Deb_Software Packaging_Debhelper - Fatal编程技术网

Python 3.x debhelper被指示使用python3,但使用python2运行setup.py

Python 3.x debhelper被指示使用python3,但使用python2运行setup.py,python-3.x,debian,deb,software-packaging,debhelper,Python 3.x,Debian,Deb,Software Packaging,Debhelper,我正在努力使用dh为Python3(而不是Python2)创建包。我使用setup.py,当使用python3调用它时,它为python3构建。我有一个单独的py3kdebian目录,所以我只想为该版本构建 debian/rules如下所示: export DH_VERBOSE=1 %: dh $@ --with python3 %: dh $@ --with python3 --buildsystem=pybuild 而debian/control拥有所有常用功能,包括X-

我正在努力使用
dh
为Python3(而不是Python2)创建包。我使用
setup.py
,当使用
python3
调用它时,它为python3构建。我有一个单独的py3k
debian
目录,所以我只想为该版本构建

debian/rules
如下所示:

export DH_VERBOSE=1
%:
    dh $@ --with python3
%:
    dh $@ --with python3 --buildsystem=pybuild
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)
 ...

问题出在哪里?

解决方案是将
--buildsystem=pybuild
添加到
debian/rules
,使其看起来像这样:

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