If pyperformance is installed as editable pip install -e . from the git repository, it doesn't work when invoked
$ /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance
ERROR: pyperformance should not be run without installing first
(consider using the dev.py script)
The check is done by is_installed() which calls both _is_dev() and _is_devel_install() which are both broken.
The function is_dev() bases the logic on the presence of setup.py which is long gone.
The function _is_devel_install() instead check the presence of pyperformance.egg-link in the site-packages.
In my installation I have:
pyperformance.egg-info directory in the git repository
__editable___pyperformance_1_0_9_finder.py, __editable__.pyperformance-1.0.9.pth, pyperformance-1.0.9.dist-info in the site-packages
I'm trying to invoke pyperformance using a dev instance via
If pyperformance is installed as editable
pip install -e .
from the git repository, it doesn't work when invokedThe check is done by is_installed() which calls both
_is_dev()
and_is_devel_install()
which are both broken.The function is_dev() bases the logic on the presence of
setup.py
which is long gone.The function _is_devel_install() instead check the presence of
pyperformance.egg-link
in the site-packages.In my installation I have:
pyperformance.egg-info
directory in the git repository__editable___pyperformance_1_0_9_finder.py
,__editable__.pyperformance-1.0.9.pth
,pyperformance-1.0.9.dist-info
in the site-packagesI'm trying to invoke pyperformance using a dev instance via
and it will fail eventually: