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

Fix Python 3.12 CI #211

Closed
flying-sheep opened this issue Feb 21, 2025 · 1 comment · Fixed by #212
Closed

Fix Python 3.12 CI #211

flying-sheep opened this issue Feb 21, 2025 · 1 comment · Fixed by #212

Comments

@flying-sheep
Copy link
Collaborator

The runner 20250209.1.0 with Ubuntu 24.04.1 (maybe others) might have problems.

First installing the build Python package into /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/site-packages didn’t result in /opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/bin/python being able to import it, then bypassing that (by using uv tool install), a later step failed in the same way (the package wasn’t importable).

$ pyproject-build --installer=uv --wheel
* Creating isolated environment: venv+uv...
* Using external uv from /opt/hostedtoolcache/uv/0.6.1/x86_64/uv
* Installing packages in isolated environment:
  - hatch-vcs
  - hatchling
* Getting build dependencies for wheel...
* Building wheel...
Successfully built anndata2ri-1.3.3.dev22-py3-none-any.whl
$ uv pip install --system $(ls -1 dist/anndata2ri*.whl)[test]
Using Python 3.12.9 environment at: /opt/hostedtoolcache/Python/3.12.9/x64
[…]
Installed 41 packages in 98ms
 + anndata==0.11.3
 + anndata2ri==1.3.3.dev22 (from file:///home/runner/work/anndata2ri/anndata2ri/dist/anndata2ri-1.3.3.dev22-py3-none-any.whl)
[…]
$ python -c "import anndata2ri"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'anndata2ri'
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 a pull request may close this issue.

1 participant