Should use /usr/bin/python(3), not /usr/bin/env python3
| Task Info (Flyspray) | |
|---|---|
| Opened By | Antony Lee (anntzer) |
| Task ID | 59844 |
| Type | Bug Report |
| Project | Arch Linux |
| Category | Arch Projects |
| Version | None |
| OS | All |
| Opened | 2018-08-28 12:24:05 UTC |
| Status | Assigned |
| Assignee | Kyle Keen (keenerd) |
Details
Description: Currently, the /usr/bin/namcap wrapper script invokes python through /usr/bin/env. Due to this, namcap doesn't work when in a virtualenv. There is no reason to use /usr/bin/env in the wrapper script: you know exactly where the package is going to be installed, it's in /usr; therefore, python should just be invoked as /usr/bin/python (or /usr/bin/python3).
Additional info:
- package version(s): namcap 3.2.8-2
- config and/or log files etc.: N/A
Steps to reproduce: $ python -mvenv /tmp/foobar && source activate /tmp/foobar/bin/activate $ namcap ---> error
Edit /usr/bin/namcap to use /usr/bin/python3. $ namcap ---> success