Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

fix: disable library if AVX is missing #4

Merged
merged 9 commits into from
Dec 21, 2023
Merged

fix: disable library if AVX is missing #4

merged 9 commits into from
Dec 21, 2023

Conversation

bdraco
Copy link
Owner

@bdraco bdraco commented Dec 21, 2023

HAS_MISSING_AVX is True if AVX is not supported and using x86_64.

This is a workaround to disable zlib-ng on x86_64 if AVX is not supported
on older CPUs until pycompression/python-zlib-ng#15
is merged and released.

See home-assistant/core#105254

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (8a905f3) 94.44% compared to head (2b5d79b) 82.35%.
Report is 1 commits behind head on main.

Files Patch % Lines
src/aiohttp_zlib_ng/__init__.py 87.50% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main       #4       +/-   ##
===========================================
- Coverage   94.44%   82.35%   -12.10%     
===========================================
  Files           1        1               
  Lines          18       34       +16     
  Branches        4        7        +3     
===========================================
+ Hits           17       28       +11     
- Misses          0        4        +4     
- Partials        1        2        +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco marked this pull request as ready for review December 21, 2023 18:12
@bdraco bdraco merged commit f841cee into main Dec 21, 2023
14 of 17 checks passed
@bdraco bdraco deleted the no_avx branch December 21, 2023 18:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant