Skip to content

Fix UNKNOWN package name when installing with --no-build-isolation#5

Open
AshadowZ wants to merge 1 commit intonv-tlabs:mainfrom
AshadowZ:main
Open

Fix UNKNOWN package name when installing with --no-build-isolation#5
AshadowZ wants to merge 1 commit intonv-tlabs:mainfrom
AshadowZ:main

Conversation

@AshadowZ
Copy link

Problem Description

When installing this package using pip install . --no-build-isolation (which is common practice for CUDA extensions to reuse the host's PyTorch environment), pip skips creating a temporary build environment and instead relies on the host system's setuptools.

If the host's setuptools version is older than 61.0.0, it does not support PEP 621 and ignores the [project] metadata table in pyproject.toml. As a result, setup.py fails to retrieve the package name and version, causing the package to be built and installed as:
UNKNOWN-0.0.0

Proposed Changes

This PR modifies setup.py to explicitly pass the name and version arguments to the setup() function.

@nvibd
Copy link
Collaborator

nvibd commented Jan 28, 2026

Thank you for making this PR! I will review it ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments