Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] setuptools.build_meta proceeds with no setup.py or setup.cfg #2799

Closed
1 task done
godlygeek opened this issue Sep 22, 2021 · 1 comment · Fixed by #2817
Closed
1 task done

[BUG] setuptools.build_meta proceeds with no setup.py or setup.cfg #2799

godlygeek opened this issue Sep 22, 2021 · 1 comment · Fixed by #2817

Comments

@godlygeek
Copy link

godlygeek commented Sep 22, 2021

setuptools version

setuptools==58.1.0

Python version

Python 3.9

OS

Linux

Additional environment information

No response

Description

Running pip install . in a directory that contains nothing but a pyproject.toml with these contents:

[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

successfully installs a distribution containing no modules or packages and no useful metadata:

$ cat /tmp/39/lib/python3.9/site-packages/UNKNOWN-0.0.0.dist-info/METADATA
Metadata-Version: 2.1
Name: UNKNOWN
Version: 0.0.0
Summary: UNKNOWN
Home-page: UNKNOWN
License: UNKNOWN
Platform: UNKNOWN

UNKNOWN

Expected behavior

I would expect the build backend to fail, due to it lacking any useful configuration, rather than succeeding in building a package that is empty except for placeholder metadata.

This may be a duplicate of #2329, but that one was specifically scoped to build_meta:__legacy__, and all of the discussion was about the legacy backend. In this case, you can see that the same issue occurs even with the PEP 517 backend.

How to Reproduce

See description

Output

See description

Code of Conduct

  • I agree to follow the PSF Code of Conduct
@godlygeek godlygeek added bug Needs Triage Issues that need to be evaluated for severity and status. labels Sep 22, 2021
@pradyunsg pradyunsg changed the title setuptools.build_meta proceeds with no setup.py or setup.cfg [BUG] [BUG] setuptools.build_meta proceeds with no setup.py or setup.cfg Oct 15, 2021
@jaraco
Copy link
Member

jaraco commented Oct 20, 2021

There's a lot of context and conversation in #2329, so I'm going to re-scope #2329 to include this concern.

@jaraco jaraco closed this as completed Oct 20, 2021
@jaraco jaraco added duplicate enhancement and removed bug Needs Triage Issues that need to be evaluated for severity and status. labels Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants