Bug ID 1205478
Summary python3-pip: Upgrade needed to fix pip installations using pyproject.toml
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee screening-team-bugs@suse.de
Reporter dheidler@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

When running "python3 setup.py install" there is a deprecation warning as using
setup.py seems to get deprecated in favor of using "pyproject.toml" using pip.

The new way is running "sudo pip install ." in the git root where the
pyproject.toml is.

This however doesn't work because it is broken in the currently newest packaged
version of python3-pip (22.0.4) - the issue doesn't happen eg. in an archlinux
container with pip 22.3.1:




sudo pip install .
[sudo] Passwort f���r root: 
Processing /home/dheidler/devel/wifi_autologin
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: requests in /usr/lib/python3.10/site-packages
(from wifi-autologin==0.0.1) (2.28.1)
Requirement already satisfied: certifi>=2017.4.17 in
/usr/lib/python3.10/site-packages (from requests->wifi-autologin==0.0.1)
(2021.10.8)
Requirement already satisfied: charset_normalizer<4,>=2 in
/usr/lib/python3.10/site-packages (from requests->wifi-autologin==0.0.1)
(3.0.0)
Requirement already satisfied: idna<4,>=2.5 in
/usr/lib/python3.10/site-packages (from requests->wifi-autologin==0.0.1) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in
/usr/lib/python3.10/site-packages (from requests->wifi-autologin==0.0.1)
(1.26.12)
Building wheels for collected packages: wifi-autologin
  Building wheel for wifi-autologin (pyproject.toml) ... done
  Created wheel for wifi-autologin:
filename=wifi_autologin-0.0.1-py3-none-any.whl size=4716
sha256=38217b300bc9ddeb58123ed664d1201d41929cd06541d3d052214e706c467f96
  Stored in directory:
/tmp/pip-ephem-wheel-cache-re2g65ip/wheels/21/87/aa/8ac76967d4592fa6501e37cc745792eb7a5bdb6f5d21ac7aeb
Successfully built wifi-autologin
Installing collected packages: wifi-autologin
  Attempting uninstall: wifi-autologin
    Found existing installation: wifi-autologin 0.0.1
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pip/_internal/cli/base_command.py",
line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/lib/python3.10/site-packages/pip/_internal/cli/req_command.py",
line 205, in wrapper
    return func(self, options, args)
  File "/usr/lib/python3.10/site-packages/pip/_internal/commands/install.py",
line 405, in run
    installed = install_given_reqs(
  File "/usr/lib/python3.10/site-packages/pip/_internal/req/__init__.py", line
68, in install_given_reqs
    uninstalled_pathset = requirement.uninstall(auto_confirm=True)
  File "/usr/lib/python3.10/site-packages/pip/_internal/req/req_install.py",
line 637, in uninstall
    uninstalled_pathset = UninstallPathSet.from_dist(dist)
  File "/usr/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py",
line 554, in from_dist
    for script in dist.iterdir("scripts"):
  File
"/usr/lib/python3.10/site-packages/pip/_internal/metadata/pkg_resources.py",
line 156, in iterdir
    if not self._dist.isdir(name):
  File
"/usr/lib/python3.10/site-packages/pip/_vendor/pkg_resources/__init__.py", line
2816, in __getattr__
    return getattr(self._provider, attr)
AttributeError: 'PathMetadata' object has no attribute 'isdir'


You are receiving this mail because: