Skip to content

Log a message when not trying to build a wheel from an sdist #7709

@pradyunsg

Description

@pradyunsg

Environment

  • pip version: 20.0.2
  • Python version: 3.8.0
  • OS: MacOS

Description

pip is supposed to attempt to build a wheel from an sdist, so that the installation happens through a wheel. However, when given an sdist URL, pip attempts a setup.py install without trying to build a wheel.

$ pip install https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
Collecting https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
  Using cached pycparser-2.19.tar.gz (158 kB)
Installing collected packages: pycparser
    Running setup.py install for pycparser ... done
Successfully installed pycparser-2.19

Expected behavior

pip would build a wheel for pycparser which would get cached for future installs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationstate: awaiting PRFeature discussed, PR is neededtype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions