Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit pass the Python path to pipx in CI step #4792

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

abravalheri
Copy link
Contributor

@abravalheri abravalheri commented Jan 8, 2025

Summary of changes

I identified some recent problems in the CI:

creating virtual environment...
installing build...
* Creating isolated environment: venv+pip...
* Getting build dependencies for sdist...
/home/runner/work/setuptools/setuptools/_distutils_hack/__init__.py:53: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
  warnings.warn(

Traceback (most recent call last):
  File "/opt/pipx/.cache/98ab2ca9c43e098/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'

ERROR Backend 'setuptools.build_meta' is not available.
Error: Process completed with exit code 1.

https://github.com/pypa/setuptools/actions/runs/12672452318/job/35316523998

Curiously the trace shows lib/python3.12/site-packages/pyproject_hooks/..., but the python that should have been used is Python 10. So there might be a problem with pipx picking up the wrong version of Python...

Closes

Pull Request Checklist

@abravalheri abravalheri marked this pull request as ready for review January 8, 2025 15:06
@abravalheri abravalheri merged commit 27475f9 into pypa:main Jan 8, 2025
23 checks passed
@abravalheri abravalheri deleted the ci-problems branch January 8, 2025 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant