Summary: | devel/py-setuptools_scm: py27-setuptools_scm-3.1.0 fails to upgrade from py27-setuptools_scm-1.17.0 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Peter Putzer <freebsd> | ||||||
Component: | Individual Port(s) | Assignee: | Martin Wilke <miwi> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Some People | CC: | aryeh.friedman, djohnson, kai, miwi, python, skh1002 | ||||||
Priority: | --- | Keywords: | needs-qa | ||||||
Version: | Latest | Flags: | kai:
maintainer-feedback+
koobs: merge-quarterly? |
||||||
Hardware: | amd64 | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Peter Putzer
2019-01-29 17:54:51 UTC
I confirm this happens as well when building under FreeBSD 12.0-RELEASE-p1. I forgot to say that I am using Python 3.7, but the error looks exactly the same. (In reply to Peter Putzer from comment #0) (In reply to Serge from comment #2) Hello, thank you for the info. I was able to reproduce the issue with portmaster and the following quick fix might remedy the problem by removing the the old version and then install the new version from the ports tree: > # pkg remove -f py27-setuptools_scm > # cd /usr/ports/devel/py-setuptools_scm > # make install I'll investigate this issue more thoroughly what's exactly causing this as soon as possible. Created attachment 201529 [details]
py-setuptools_scm-fix_inplace_upgrade.patch
Created attachment 201530 [details]
py-setuptools_scm-fix_inplace_upgrade-NON-SVN.shar / for non-SVN users
I created two patches that should remedy the issue with the inplace upgrade of devel/py-setuptools_scm. The second patch, a shar file, is meant for the users that don't use SVN. The root cause of the issue is that setup.py has been slightly changed since 3.0.0 . [1] Before that there had been also a discussion [2] that led to the changes in the setup.py file [1]. [1] https://github.com/pypa/setuptools_scm/pull/264/commits/de0bed4fc96330b021cbee63dc4f3a5eae2549c5 [2] https://github.com/pypa/setuptools_scm/issues/262 @koobs: A quartely-merge is afaik not required because devel/py-setuptools_scm 3.1.0 has not been introduced to the quartely branch. *** Bug 235326 has been marked as a duplicate of this bug. *** A commit references this bug: Author: miwi Date: Wed Jan 30 16:39:38 UTC 2019 New revision: 491631 URL: https://svnweb.freebsd.org/changeset/ports/491631 Log: - Fix update with portmaster PR: 235301 Submitted by: Maintainer Reported by: Many Sponsored by: iXsystems Inc. Changes: head/devel/py-setuptools_scm/files/ head/devel/py-setuptools_scm/files/patch-setup.py |