Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Dec 2021 17:45:55 +0800
From:      Po-Chuan Hsieh <sunpoet@freebsd.org>
To:        Koichiro Iwao <meta@freebsd.org>
Cc:        ports-developers@freebsd.org, python@freebsd.org
Subject:   Re: devel/py-pyparsing and devel/py-packaging have circular dependency
Message-ID:  <CAMHz58Qd9u=KGZdWku3yZBz2AAbA65myS8H3r2T49k18xEQZ2A@mail.gmail.com>
In-Reply-To: <eeaf3aa09629271399e35edd5284d814@freebsd.org>
References:  <e274d860b9a4319196a0c18cf34fbe20@freebsd.org> <eeaf3aa09629271399e35edd5284d814@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000001a3c205d24ee6d9
Content-Type: text/plain; charset="UTF-8"

This is totally a portmaster issue (wrong order of build, install and
deinstall).
The python dependencies are all correct.
py-pyparsing DOES NOT REQUIRE py-packaging.

On Sat, Dec 4, 2021 at 5:27 PM Koichiro Iwao <meta@freebsd.org> wrote:

> For the record,
>
> devel/py-packaging requires devel/py-pyparsing. OTOH, dvel/py-pyparsing
> requires devel/py-packaging.
> I cannot install either.
>
> % make -V PORTVERSION  -C /usr/ports/devel/py-packaging
>
>                                                     21.3
>
>
>                                          % make -V PORTVERSION  -C
> /usr/ports/devel/py-pyparsing
> 3.0.6
>
> % sudo make install -C /usr/ports/devel/py-packaging
> ===>   py38-packaging-21.3 depends on package: py38-setuptools>0 - found
> ===>   py38-packaging-21.3 depends on file: /usr/local/bin/python3.8 -
> found
> ===>   py38-packaging-21.3 depends on file: /usr/local/bin/ccache -
> found
> ===>  Configuring for py38-packaging-21.3
> Traceback (most recent call last):
>
>                                                                  File
> "<string>", line 1, in <module>
>
>                                                           File
> "setup.py", line 40, in <module>
>
>                                                             setup(
>
>
>                                                File
> "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line
> 153, in setup
>      return distutils.core.setup(**attrs)
>
>                                                                  File
> "/usr/local/lib/python3.8/distutils/core.py", line 108, in setup
>
>
> _setup_distribution = dist = klass(attrs)
>    File "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line
> 455, in __init__
>      _Distribution.__init__(self, {
>
>                                                                  File
> "/usr/local/lib/python3.8/distutils/dist.py", line 292, in __init__
>      self.finalize_options()
>
>                                                                  File
> "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 800,
> in finalize_options
>      for ep in sorted(eps, key=by_order):
>
>                                                                  File
> "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 799,
> in <lambda>
>      eps = map(lambda e: e.load(),
> pkg_resources.iter_entry_points(group))
>
>                                File
> "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line
> 2449, in load
>
> self.require(*args, **kwargs)
>
>                                                              File
> "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line
> 2472, in require
>      items = working_set.resolve(reqs, env, installer,
> extras=self.extras)
>
>            File
> "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line
> 772, in resolve
>      raise DistributionNotFound(req, requirers)
>
>
> pkg_resources.DistributionNotFound: The 'pyparsing!=3.0.5,>=2.0.2'
> distribution was not found and is required by packaging
> *** Error code 1
>
>
>
>
>                                                     Stop.
>
>
>                                          make: stopped in
> /usr/ports/devel/py-packaging
>
> % sudo make install  -C /usr/ports/devel/py-pyparsing
>
>                                                     ===>
> py38-pyparsing-3.0.6 depends on package: py38-setuptools>0 - found
> ===>   py38-pyparsing-3.0.6 depends on file: /usr/local/bin/python3.8 -
> found
>                                                                 ===>
> py38-pyparsing-3.0.6 depends on file: /usr/local/bin/ccache - found
> ===>  Configuring for py38-pyparsing-3.0.6
> Traceback (most recent call last):
>
>                                                                  File
> "<string>", line 1, in <module>
>    File "setup.py", line 23, in <module>
>
>                                                                    setup(
>   # Distribution meta-data
>    File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py",
> line 153, in setup
>      return distutils.core.setup(**attrs)
>
>                                                                  File
> "/usr/local/lib/python3.8/distutils/core.py", line 108, in setup
>
>
> _setup_distribution = dist = klass(attrs)
>
>                                                              File
> "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 455,
> in __init__
>      _Distribution.__init__(self, {
>    File "/usr/local/lib/python3.8/distutils/dist.py", line 292, in
> __init__
>      self.finalize_options()
>
>                                                                  File
> "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 800,
> in finalize_options
>                                                               for ep in
> sorted(eps, key=by_order):
>
>                                                    File
> "/usr/local/lib/python3.8/site-packages/setuptools/dist.py", line 799,
> in <lambda>
>                                                               eps =
> map(lambda e: e.load(), pkg_resources.iter_entry_points(group))
>
>                                                        File
> "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line
> 2449, in load
>      self.require(*args, **kwargs)
>
>                                                                  File
> "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line
> 2472, in require
>                                                             items =
> working_set.resolve(reqs, env, installer, extras=self.extras)
>
>                                                      File
> "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line
> 772, in resolve
>                                                             raise
> DistributionNotFound(req, requirers)
>
>
> pkg_resources.DistributionNotFound: The 'packaging>=20.0' distribution
> was not found and is required by the application
> *** Error code 1
>
>
>
>
>                                                     Stop.
>
>
>                                          make[1]: stopped in
> /usr/ports/devel/py-pyparsing
> *** Error code 1
>
>
>
>
>                                                     Stop.
>
>
>                                          make: stopped in
> /usr/ports/devel/py-pyparsing
>
> --
> meta <meta@FreeBSD.org>
>

--00000000000001a3c205d24ee6d9--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMHz58Qd9u=KGZdWku3yZBz2AAbA65myS8H3r2T49k18xEQZ2A>