-
Make sure you run commands with Steps to reproduceI was testing I then realized that the root folder for built wheels is probably not right. If we take https://github.com/pdm-project/pdm-pep517/tree/master/tests/fixtures/projects/demo-module, should not the root folders in the wheel be
I was testing a few wheels from Reusing shared build env: /tmp/pdm-build-env-50x692ap-shared
- Adding bar_module.py
- Adding foo_module.py
- Adding demo_module-0.1.0.dist-info/WHEEL
- Adding demo_module-0.1.0.dist-info/METADATA
- Adding demo_module-0.1.0.dist-info/LICENSE
- Adding demo_module-0.1.0.dist-info/RECORD Actual behaviorPackage should have a root folder name according to package name Expected behaviorRoot package is the one from source structure, without root folder being project name. Environment Information# Paste the output of `pdm info && pdm info --env` below:
PDM version: 1.13.2
Python Interpreter: /home/linuxbrew/.linuxbrew/opt/[email protected]/bin/python3.9 (3.9)
Project Root: /home/typhoon/pdm-pep517/tests/fixtures/projects/demo-module
Project Packages: /home/typhoon/pdm-pep517/tests/fixtures/projects/demo-module/__pypackages__/3.9
{
"implementation_name": "cpython",
"implementation_version": "3.9.10",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_release": "5.4.0-100-generic",
"platform_system": "Linux",
"platform_version": "#113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022",
"python_full_version": "3.9.10",
"platform_python_implementation": "CPython",
"python_version": "3.9",
"sys_platform": "linux"
} Maybe it's just a missing configuration, thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Taken from another single module package:
This is expected, all files & directories under the wheel root will be extracted and copied to the target path( |
Beta Was this translation helpful? Give feedback.
-
Hello @frostming, Thanks for the quick answer, I was kind of expecting this, is there any way to achieve the mentioned goal ? |
Beta Was this translation helpful? Give feedback.
-
I ran everything with a fresh local cache of pip on my machine, and I realized both Also, one of the missing config here was Really sorry to have bothered with this, and I'm really surprised how fast and responsive you are on the issues. |
Beta Was this translation helpful? Give feedback.
Taken from another single module package: