Skip to content

DEPRECATION: pysetupdi contains an egg fragment with a non-PEP 508 name #179

@EasyRiderr

Description

@EasyRiderr

The problem
When installing the bless package (from master branch), we got the following deprecation warning:

DEPRECATION: git+https://github.com/gwangyi/pysetupdi#egg=pysetupdi;platform_system=='Windows' contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
Full log:

$ pip install -e .
Obtaining file:///home/user/Documents/bless
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
DEPRECATION: git+https://github.com/gwangyi/pysetupdi#egg=pysetupdi;platform_system=='Windows' contains an egg fragment with a non-PEP 508 name pip 25.0 will enforce this behaviour change. A possible replacement is to use the req @ url syntax, and remove the egg fragment. Discussion can be found at https://github.com/pypa/pip/issues/11617
Collecting pysetupdi@ git+https://github.com/gwangyi/pysetupdi#egg=pysetupdi (from bless==0.3.0)
  Cloning https://github.com/gwangyi/pysetupdi to /tmp/pip-install-o8c2zt4i/pysetupdi_25e8814dbfee455389ba1455e82390e0
  Running command git clone --filter=blob:none --quiet https://github.com/gwangyi/pysetupdi /tmp/pip-install-o8c2zt4i/pysetupdi_25e8814dbfee455389ba1455e82390e0
  Resolved https://github.com/gwangyi/pysetupdi to commit 4b48c1da115f571e82876ee7659e78ec4d1e2ae9
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting bleak>=1.1.1 (from bless==0.3.0)
  Using cached bleak-2.1.1-py3-none-any.whl.metadata (5.2 kB)
Collecting coloredlogs (from bless==0.3.0)
  Using cached coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)
Collecting dbus_next (from bless==0.3.0)
  Using cached dbus_next-0.2.3-py3-none-any.whl.metadata (7.0 kB)
Collecting dbus-fast>=1.83.0 (from bleak>=1.1.1->bless==0.3.0)
  Using cached dbus_fast-4.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (10 kB)
Collecting humanfriendly>=9.1 (from coloredlogs->bless==0.3.0)
  Using cached humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)
Using cached bleak-2.1.1-py3-none-any.whl (141 kB)
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Using cached dbus_next-0.2.3-py3-none-any.whl (57 kB)
Using cached dbus_fast-4.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (843 kB)
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Building wheels for collected packages: bless, pysetupdi
  Building editable for bless (pyproject.toml) ... done
  Created wheel for bless: filename=bless-0.3.0-0.editable-py3-none-any.whl size=4752 sha256=d6f85ec043f3cb57793bfe2c028a24143ca4d6e774cad7bd8a254852591ab6fb
  Stored in directory: /tmp/pip-ephem-wheel-cache-icgzlnrg/wheels/91/95/75/1bba1a90b93de367c0ec91db8ea1fad126f7cc1ac4a0379649
  Building wheel for pysetupdi (pyproject.toml) ... done
  Created wheel for pysetupdi: filename=pysetupdi-2018.10.22-py3-none-any.whl size=19114 sha256=6c8a3b8c2a353365732fb97438a3ba352681a90f5f1c218bdeef373e41964a25
  Stored in directory: /tmp/pip-ephem-wheel-cache-icgzlnrg/wheels/09/09/bb/ba5425247e0f45ab486c0caa515e86b68b451790e5355b860f
Successfully built bless pysetupdi
Installing collected packages: pysetupdi, humanfriendly, dbus_next, dbus-fast, coloredlogs, bleak, bless
Successfully installed bleak-2.1.1 bless-0.3.0 coloredlogs-15.0.1 dbus-fast-4.0.0 dbus_next-0.2.3 humanfriendly-10.0 pysetupdi-2018.10.22

Reproduction
To reproduce the issue:

$ python3 -m venv ~/Downloads/env/bless/
$ source ~/Downloads/env/bless/bin/activate
$ pip install -e .

Expected behavior
No deprecation warning during pip installation.

Desktop (please complete the following information):

  • OS: Linux, Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions