question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Feb 25, 2020

Closed by #7768. Thanks @anuditnagar!

1reaction
xavfernandezcommented, Feb 7, 2020

A logger.info is also fine by me 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Include files in sdist but not wheel - python - Stack Overflow
I am currently trying to build wheels and a source distribution. Because wheels are pre-compiled, they don't need to contain header files ...
Read more >
How to Publish an Open-Source Python Package to PyPI
A build system is responsible for creating the actual files that you'll upload to PyPI, typically in the wheel or the source distribution...
Read more >
4. Package structure and distribution
The build tool you use to make your distributions will handle wheel creation for you (as we'll talk about in the next section),...
Read more >
How to Package Python dependencies with PIP setuptools
Learn step by step how to package a Python project with PIP setuptools and what are the alternatives out there for Python package ......
Read more >
Python: Creating a pip installable package
This is essentially trying to install a version that does not exist and causes pip to list ... Further details for building wheels...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found