* Re: [devel] AssertionError: Python 3 required to build docs
@ 2018-05-07 13:58 ` Ivan Zakharyaschev
0 siblings, 0 replies; only message in thread
From: Ivan Zakharyaschev @ 2018-05-07 13:58 UTC (permalink / raw)
To: cas; +Cc: devel
[-- Attachment #1: Type: text/plain, Size: 2240 bytes --]
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-07 13:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-07 13:58 ` [devel] AssertionError: Python 3 required to build docs Ivan Zakharyaschev
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git