From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Cc: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: pylibfdt breakage
Date: Mon, 21 Nov 2022 14:29:35 +1100 [thread overview]
Message-ID: <Y3rwnwjwjIFNqOVF@yekko> (raw)
In-Reply-To: <CAPnjgZ1SfQaBSmn-P6aGTNh0B1R2R4CbRXsRS9H4sF3VW4D=kQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 5264 bytes --]
On Sat, Oct 29, 2022 at 07:44:04PM -0600, Simon Glass wrote:
> Hi David,
>
> On Wed, 19 Oct 2022 at 02:09, David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org> wrote:
> >
> > Hi Simon,
> >
> > I probably should have contacted you sooner about this. For some
> > time, I've been unable to compile and test the pylibfdt components on
> > my system (Fedora 36). I get this error:
> >
> > $ make
> > CHK version_gen.h
> > make[1]: Entering directory '/home/dwg/src/dtc'
> > CHK version_gen.h
> > PYMOD pylibfdt/_libfdt.so
> > /usr/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
> > warnings.warn(
> > /home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/version.py:84: UserWarning: tag 'path-ref-fixup-staging' no version found
> > warnings.warn(f"tag {tag!r} no version found")
> > Traceback (most recent call last):
> > File "/home/dwg/src/dtc/./setup.py", line 50, in <module>
> > setup(
> > File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
> > return distutils.core.setup(**attrs)
> > File "/usr/lib64/python3.10/distutils/core.py", line 108, in setup
> > _setup_distribution = dist = klass(attrs)
> > File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 459, in __init__
> > _Distribution.__init__(
> > File "/usr/lib64/python3.10/distutils/dist.py", line 292, in __init__
> > self.finalize_options()
> > File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 837, in finalize_options
> > ep(self)
> > File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 858, in _finalize_setup_keywords
> > ep.load()(self, ep.name, value)
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/integration.py", line 90, in version_keyword
> > _assign_version(dist, config)
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/integration.py", line 59, in _assign_version
> > maybe_version = _get_version(config)
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/__init__.py", line 154, in _get_version
> > parsed_version = _do_parse(config)
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/__init__.py", line 101, in _do_parse
> > version = _version_from_entrypoints(config) or _version_from_entrypoints(
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/_entrypoints.py", line 66, in _version_from_entrypoints
> > version: ScmVersion | None = _call_entrypoint_fn(root, config, ep.load())
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/_entrypoints.py", line 40, in _call_entrypoint_fn
> > return fn(root, config=config)
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/git.py", line 181, in parse
> > return _git_parse_inner(
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/git.py", line 224, in _git_parse_inner
> > return meta(
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/version.py", line 226, in meta
> > parsed_version = _parse_tag(tag, preformatted, config)
> > File "/home/dwg/src/dtc/.eggs/setuptools_scm-7.0.5-py3.10.egg/setuptools_scm/version.py", line 203, in _parse_tag
> > assert version is not None
> > AssertionError
> > make[1]: *** [pylibfdt/Makefile.pylibfdt:20: pylibfdt/_libfdt.so] Error 1
> > make[1]: Leaving directory '/home/dwg/src/dtc'
> > make: *** [Makefile:172: maybe_pylibfdt] Error 2
> >
> > Seems like the packaging stuff needs work, but it's not obvious to me
> > exactly what needs to be done. Is this something you can address?
>
> I am not sure what is going on but perhaps we could drop
> setuptools_scm? I'm assuming it is for getting the version, but we
> have that in Makefile, so could perhaps parse it?
Well, you tell me. I really don't know how setuptools work, nor do I
have the time to figure it out.
Or whatever has replaced setuptools that we're supposed to be using
instead according to that DeprecationWarning.
> I actually have the same version of setuptools_scm here
>
> python3-setuptools-scm (7.0.5-1)
>
> but I cannot see the error. I found this:
>
> https://github.com/pypa/setuptools_scm
>
> For me:
>
> sjg@sjg1:~/c/dtc$ pe
> 55778a0 (HEAD, us/master, us/main) libfdt: tests: add
> get_next_tag_invalid_prop_len
> 7359034 libfdt: prevent integer overflow in fdt_next_tag
> 035fb90 libfdt: add fdt_get_property_by_offset_w helper
> 98a0700 Makefile: fix infinite recursion by dropping non-existent `%.output`
>
> $ python setup.py --version
> 1.6.2.dev63+g55778a0
Hrm. I get an error similar to the one above just attempting to get
the --version like this.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-11-21 3:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 8:09 pylibfdt breakage David Gibson
2022-10-30 1:44 ` Simon Glass
[not found] ` <CAPnjgZ1SfQaBSmn-P6aGTNh0B1R2R4CbRXsRS9H4sF3VW4D=kQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-11-21 3:29 ` David Gibson [this message]
2023-02-02 14:15 ` Rob Herring
[not found] ` <CAL_Jsq+Lmkw51EAtBb62ET4xzChmTf6MGVq=pBjRoYY6Z+vQ6g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-02-02 15:00 ` Rob Herring
[not found] ` <CAL_Jsq+5ZrjQ5zVjjdmprW1+8nyTewXMb+0R+iyPG3J4xjkKPA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-02-03 10:01 ` David Gibson
2023-02-03 10:17 ` David Gibson
2023-02-03 13:56 ` Rob Herring
[not found] ` <CAL_JsqLF-FGrMPb523MVbaJ=MkczNOaJTGg5zzpZfb3oEsv6+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-02-04 0:05 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y3rwnwjwjIFNqOVF@yekko \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).