Skip to content
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

Handle extras #7

Open
tyilo opened this issue Jun 25, 2021 · 0 comments
Open

Handle extras #7

tyilo opened this issue Jun 25, 2021 · 0 comments

Comments

@tyilo
Copy link

tyilo commented Jun 25, 2021

See https://packaging.python.org/specifications/entry-points/

Trying to install black's wheel with python-install, will produce the binary blackd with the following contents:

#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from blackd import patched_main [d]
if __name__ == "__main__":
    sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0])
    sys.exit(patched_main [d]())

which of course doesn't work. python-install should not include the [d] in the file.

This is the contents of entry_points.txt for black's wheel:

[console_scripts]
black = black:patched_main
black-primer = black_primer.cli:main
blackd = blackd:patched_main [d]
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

No branches or pull requests

1 participant