Skip to content

Installed tool requires that python be the correct executable #6

@danielhoherd

Description

@danielhoherd

Description

pip install flameprof requires that python be the correct version of the executable. For those of us running python3 where python still points to python2, this causes a problem.

Steps to reproduce

  1. On macOS 10.15 running python3 from homebrew, run pip3 install --user flameprof
  2. $ cat $(which flameprof) will output:
    #!/bin/sh
    exec python -m flameprof "$@"
    
  3. python --version will output Python 2.7.17

Proposed solution

The first way I can think of to solve this is to write the contents of flameprof with an explicit version numbered interpreter, IE: python2 or python3, as determined by the version running when installed. That seems fragile, but less fragile than what exists today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions