-
Notifications
You must be signed in to change notification settings - Fork 204
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
pixi init --format pyproject && pixi shell
fails
#1941
Comments
Hey @zbowling 👋🏻 To be honest, I wonder if what you see here is fine? The error message is pretty clear and it also makes sense to me that if you have a pyproject.toml that there's also a corresponding python package. |
@Hofer-Julian The issue is you can't get into a shell to then use tools within the shell like python to help you generate the actual package since init doesn't generate a full package, just a pyproject.toml. Bit of a chicken and egg issue. Both Like if init is something like setuptools doesn't bark or fail if you don't have any source files. |
I thought about it more and I agree with you. Let's adapt pixi init accordingly! |
I think we talking about adding a proper init template system at one point. there is a feature bug for that. Something like npm init so we can generate off scaffolds. that would help us down here downstream in mojo a ton :) but then we can have a hatch or poetry or pdm style init generation for different backends. long term bigger solution maybe. |
also build backend failures to install the current project by uv into the current env that can prevent a This may require a bit of a rethink of the pyproject integration, but maybe not require |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Issue description
Hatchling is failing to compile the pyproject which is the default that init produces as a build backend now after a recent commit to swap setuptools to hatchling.build
Change the init to this gets it to work:
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
Expected behavior
Should work.
The text was updated successfully, but these errors were encountered: