shiv generate bad executable (interpreter = #!/usr/share/bash-completion/completions/python3)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
Since the latest binary release of `shiv` is [missing](https://github.com/linkedin/shiv/issues/147), I have tried to build it with itself - according to https://github.com/linkedin/shiv#installing (except, I run these in an empty directory):
```
python3 -m venv .
source bin/activate
pip install shiv
shiv -c shiv -o shiv shiv
```
The resulting executable is not working:
```bash
$ ./shiv
-bash: ./shiv: /usr/share/bash-completion/completions/python3: bad interpreter: Permission denied
$ head -1 shiv
#!/usr/share/bash-completion/completions/python3
```
----
OS: Arch linux
Python: 3.8.3
shiv: 0.1.2 (current from pypi)
Contributor guide
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
Start by reproducing the issue with the listed Python 3.8.3, Arch Linux environment, and the documented `shiv -c shiv -o shiv shiv` command. Inspect the generated `shiv` executable and its first-line interpreter path; done means the self-built command runs successfully with a usable interpreter path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100