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
- On macOS 10.15 running python3 from homebrew, run
pip3 install --user flameprof
- $
cat $(which flameprof) will output:
#!/bin/sh
exec python -m flameprof "$@"
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.
Description
pip install flameprofrequires thatpythonbe the correct version of the executable. For those of us running python3 wherepythonstill points to python2, this causes a problem.Steps to reproduce
pip3 install --user flameprofcat $(which flameprof)will output:python --versionwill outputPython 2.7.17Proposed solution
The first way I can think of to solve this is to write the contents of
flameprofwith an explicit version numbered interpreter, IE:python2orpython3, as determined by the version running when installed. That seems fragile, but less fragile than what exists today.