Help me understand the differences in wheel when using python -m build
vs hatch build
#1058
Replies: 4 comments
-
I have created a small project to illustrate and recreate my problem. https://github.com/Wim-De-Clercq/testingrepo/tree/hatch/build-question After cloning:
Compare the wheel builds
|
Beta Was this translation helpful? Give feedback.
-
The reason is |
Beta Was this translation helpful? Give feedback.
-
aha, so it's probably going to be fixed once I create a wheel buildhook to actually create my artifacts. |
Beta Was this translation helpful? Give feedback.
-
Update, yes, I can confirm that once i added a Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project with a frontend folder, and upon building the wheel I wish to only include the compiled/packed
dist
folder, and no other javascript sources.To do this, I have a build configuration as followed:
(There is no other tool.hatch.build.xyz configuration)
And then, when building the wheel in different ways:
1 python -m build --wheel
The resulting wheel contains (among other things)
This is good ✔️
2 python -m build
The resulting wheel contains (among other things)
static
contains no admin folder. This is unexpected.I thought maybe the "conflict" of the
artifacts
being a subfolder of anexclude
folder would be the reason, but even if I remove theexclude
altogether, thedist
folder is not present (butadmin
folder is)3 hatch build
The resulting wheel contains (among other things)
This is good ✔️
(it's also much faster than python -m build because I assume it skips the virtualenv setup)
So what exactly is causing run number 2 to give me a different wheel?
Beta Was this translation helpful? Give feedback.
All reactions