From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 7 May 2018 16:58:11 +0300 (MSK) From: Ivan Zakharyaschev To: cas@altlinux.org In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="1807885841-263358436-1525701491=:3504" Cc: devel@lists.altlinux.org Subject: Re: [devel] AssertionError: Python 3 required to build docs X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2018 13:58:12 -0000 Archived-At: List-Archive: List-Post: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1807885841-263358436-1525701491=:3504 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8BIT 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 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 --1807885841-263358436-1525701491=:3504--