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

should the shebang of these files be removed? #8140

Closed
sandy-lcq opened this issue Apr 26, 2020 · 6 comments
Closed

should the shebang of these files be removed? #8140

sandy-lcq opened this issue Apr 26, 2020 · 6 comments

Comments

@sandy-lcq
Copy link

Hi,

I noticed that some sources like below have shebang like "#!/usr/bin/env python"
src/pip/_internal/init.py
src/pip/_vendor/appdirs.py
src/pip/_vendor/chardet/cli/chardetect.py
src/pip/_vendor/requests/certs.py

I suspect "python: command not found" maybe reported on host which only support python3, and don't have python link to python3.

I have met similar problem on fedora31 docker image (not fedora31 desktop version, it has python link to python3) on other python packages. I don't know how to reproduce for pip, and I think maybe it also have this problem.

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Apr 26, 2020
@deveshks
Copy link
Contributor

The shebang present in src/pip/_internal/__init__.py has already been removed in #7959

The other listed files are from vendored dependencies, and hence have to be modified in their respected repo, and the vendored version update in pip to get rid of the shebang. More details about vendoring is present at Vendoring Policy

@sandy-lcq
Copy link
Author

ok, thanks. I will report this to separated repo. and paste the related link here later.

@sandy-lcq
Copy link
Author

@deveshks
Copy link
Contributor

I think similar issues are already raised against these repos, as noted in #7959 (comment) . Could you check them if they are talking about the same files as in this ticket?

@sandy-lcq
Copy link
Author

yes, thanks. I will close my issue.

@deveshks
Copy link
Contributor

deveshks commented May 5, 2020

I think this issue can also be closed, since the changes are to be done in the vendored libraries (psf, chardet and appdirs) of pip, and there are already PRs opened to fix those in the respective repos.

@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Feb 12, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants