-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry build wheel file. not found top_level.txt #3093
Comments
Hello @juyoung-yoo, what is this fin swimmer |
I was also wondering why poetry-produced wheels don't include a top_level.txt. I couldn't find anything official on it either but I did find this mention in A dive into packaging native python extensions:
|
There is a workaround:
|
This fixes at least one subtle bug: Some distributions do not include a `top_level.txt` in their `.dist-info`, however `importlib.metadata.packages_distributions` more-or-less relies on it to work properly. See python-poetry/poetry#3093 and https://github.com/python/cpython/blob/6cc6b13308b3202270ea7ac0ee776762a66f6a2f/Lib/importlib/metadata/__init__.py#L1043
This fixes at least one subtle bug: Some distributions do not include a `top_level.txt` in their `.dist-info`, however `importlib.metadata.packages_distributions` more-or-less relies on it to work properly. See python-poetry/poetry#3093 and https://github.com/python/cpython/blob/6cc6b13308b3202270ea7ac0ee776762a66f6a2f/Lib/importlib/metadata/__init__.py#L1043
This fixes at least one subtle bug: Some distributions do not include a `top_level.txt` in their `.dist-info`, however `importlib.metadata.packages_distributions` more-or-less relies on it to work properly. See python-poetry/poetry#3093 and https://github.com/python/cpython/blob/6cc6b13308b3202270ea7ac0ee776762a66f6a2f/Lib/importlib/metadata/__init__.py#L1043
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).OS version and name: MacOs 10.15.6
Poetry version: 1.1.0b2
Link of a Gist with the contents of your pyproject.toml file:
Issue
Hi
I build using poetry.
and
testcommon-0.1.1-py3-none-any.whl
file unpack.I didn't found 'top_level.txt` file
**poetry build **
**setup.py build **
$ python3 setup.py sdist bdist_wheel
I think, poetry can't find the package from pyproject.toml file.
How can i found packages.
The reason why I need a file is Pex.
The text was updated successfully, but these errors were encountered: