pythonfinder icon indicating copy to clipboard operation
pythonfinder copied to clipboard

PythonFinder: Cross Platform Search Tool for Finding Pythons

Results 12 pythonfinder issues
Sort by recently updated
recently updated
newest added

`pythonfinder.Finder().find_all_python_versions()` fails to find python versions with two digit numbers in minor version. This is probably due to this check: https://github.com/sarugaku/pythonfinder/blob/374e1d3cc8fc599abca4d35fa01d088580e432c2/src/pythonfinder/utils.py#L220 and the fact that these contain `?` and not...

We're working on some updates to python resolution when creating virtual environments from within virtual environments with nox in https://github.com/theacodes/nox/pull/231. It was suggested to use pythonfinder rather than rolling our...

enhancement

As recorded in https://github.com/pypa/pipenv/issues/4588 and https://github.com/tox-dev/tox-pipenv/issues/68, pythonfinder seems to have problems, when the path to the interpeter starts with a dot. Using the followin `tox.ini`: ```ini [tox] requires = tox-pipenv...

I'm not sure what's causing this, and what details of my environment might be relevant, but I'm encountering a *hard* hang when calling `Finder.find_python_version` or `Finder.find_all_python_versions`. The Python process becomes...

Given a dangling symlink in a `$PATH` entry you will get an error: `t.py`: ```python from pythonfinder import Finder finder = Finder() print(finder.find_all_python_versions()) ``` ``` % python t.py Traceback (most...

Hello, when I ran tox on my machine I got `OSError [Errno 18] Invalid cross-device` link at these tests: - tests/test_python.py::test_python_versions - tests/test_python.py::test_shims_are_kept - tests/test_python.py::test_shims_are_removed I think it is because...

enhancement
question

For example, ```Finder().find_python_version(3, minor=6, patch=6)``` could return ```.../.pyenv/versions/3.6.6/bin/python3``` or ```.../.pyenv/versions/3.6.6/bin/python3.6``` or```.../.pyenv/versions/3.6.6/bin/python3.6m``` It looks like the first item which is the path is not sorted in https://github.com/sarugaku/pythonfinder/blob/3126cf2dbb55216402a7f42deffaf8512b03c56d/src/pythonfinder/models/mixins.py#L298. But I don't know...

python.org installers for macOS install Python to `/Library/Frameworks/Python.framework/Versions/X.Y` (replace `X.Y` with actual versions), but the installed binary is not always linked into `PATH`. It would be useful to find Python...

PR #135 removed `WindowsFinder` (which wrapped the vendored pep514tools library) and did not replace it with any equivalent support for [PEP-514](https://peps.python.org/pep-0514/). As noted in the PR description, this was somewhat...

Reproduction on Windows: No Python versions in PATH, running under PowerShell 7.4.1. All testing is pythonfinder 2.1.0 ```console > py -3 -m venv pythonfinder > cd pythonfinder > .\Scripts\Activate.ps1 >...