Skip to content

Commit 69fe2a0

Browse files
committed
Build memray from main for the py315 env
memray 1.19.3 predates the 3.15 support merged in bloomberg/memray#920 and ships no cp315 wheels, so pip falls back to the sdist and the C extension build fails on the runner. Until a memray release covers 3.15, the py315 tox env installs memray from git main and the py315 CI leg alone gains the apt packages memray's own CI uses to build it. All other legs keep installing released memray from PyPI; the pin and the extra CI step should both be dropped once cp315 wheels are published. Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com>
1 parent fca35a6 commit 69fe2a0

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
uses: actions/setup-python@v6.3.0
4343
with:
4444
python-version: ${{ matrix.py }}-dev
45+
# memray has no cp315 wheels yet, so py315 builds it from source
46+
- name: install memray build dependencies
47+
if: matrix.tox_env == 'py315'
48+
run: sudo apt-get update -q && sudo apt-get install -qy libdebuginfod-dev libunwind-dev liblz4-dev pkg-config
4549
- name: setup test suite ${{ matrix.tox_env }}
4650
run: tox -vv --notest -e ${{ matrix.tox_env }}
4751
- name: run test suite ${{ matrix.tox_env }}

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ allowlist_externals =
3434
package = wheel
3535
wheel_build_env = .pkg
3636

37+
[testenv:py315]
38+
deps =
39+
# memray 1.19.3 ships no cp315 wheels; use main until a release with 3.15 support
40+
memray @ git+https://github.com/bloomberg/memray.git
41+
3742
[testenv:py312-cov]
3843
commands =
3944
make coverage

0 commit comments

Comments
 (0)