[devel] AssertionError: Python 3 required to build docs

Ivan Zakharyaschev imz на altlinux.org
Пн Май 7 16:58:11 MSK 2018


On Fri, 4 May 2018, Андрей Черепанов wrote:

> alt:/home/cas/git/python-module-cherrypy

Сейчас, наверное, дело в том, что при создании архива из git нет 
MANIFEST.in:

$ git --no-pager diff -w --stat 3.5.1-alt1.hg20140627.1.1..v14.2.0 -- 
MANIFEST.in
 MANIFEST.in | 13 -------------
 1 file changed, 13 deletions(-)
$ 

и вместо этого он пытается использовать setuptools_scm (а .git/ тоже нет 
в архиве):

$ rpm -qp 
/ALT/Sisyphus/noarch/RPMS.classic/python3-module-setuptools_scm-1.15.0-alt1.1.1.noarch.rpm 
-i
Name        : python3-module-setuptools_scm  Relocations: (not 
relocatable)
Version     : 1.15.0                            Vendor: ALT Linux Team
Release     : alt1.1.1                      Build Date: Tue Feb  6 
11:01:24 2018
Install date: (not installed)               Build Host: 
slev-sisyphus.hasher.altlinux.org
Group       : Development/Python3           Source RPM: 
python-module-setuptools_scm-1.15.0-alt1.1.1.src.rpm
Size        : 84152                            License: MIT
Packager    : Python Development Team <python at packages.altlinux.org>
URL         : https://pypi.python.org/pypi/setuptools_scm/
Summary     : The blessed package to manage your versions by scm tags
Description :
setuptools_scm is a simple utility for the setup_requires feature of
setuptools for use in Mercurial and Git based projects.

It uses metadata from the SCM to generate the version of a project and
is able to list the files belonging to that project (which makes the
MANIFEST.in file unnecessary in many cases).

It falls back to PKG-INFO/.hg_archival.txt when necessary.

Сейчас ошибка такая:

LookupError: setuptools-scm was unable to detect version for 
'/usr/src/RPM/BUILD/python3'.

Make sure you're either building from a fully intact git repository or 
PyPI tarballs. Most other sources (such as GitHub's tarballs, a git 
checkout without the .git folder) don't contain the necessary metadata and 
will not work.

For example, if you're using pip, instead of 
https://github.com/user/proj/archive/master.zip use 
git+https://github.com/user/proj.git#egg=proj
error: Bad exit status from /usr/src/tmp/rpm-tmp.83102 (%install)

Может, какой-то аналог PKG-INFO/.hg_archival.txt стоит класть...

-- 
Best regards,
Ivan


Подробная информация о списке рассылки Devel