`easy_install.is_python_script` gets it wrong
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Originally reported by: qwcode (Bitbucket: qwcode, GitHub: qwcode)
easy_install.is_python_script determines whether a script is wrapped or simply copied over.
the order of the logic in the function is:
- if py ext, then python script
- if compiles without Syntax or TypeError, then python script
- if python shebang, then python script
in the case where a simple bash script compiles ok, it misreports it as python even though it has a non-python shebang.
I think the shebang check should come before the compile check.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate easy_install.is_python_script and read the existing extension, compile, and shebang checks. Reproduce the issue with a simple bash script that has a non-Python shebang, then verify that the function no longer identifies it as a Python script.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100