Skip to content

Commit

Permalink
fix typing and debug compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed May 20, 2024
1 parent dd4d1fd commit fd6d343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
tox -m lint-manual
- name: Run compilation
run: |
pip install -e .
pip install -v -e .
python tools/fail_if_no_c.py
- name: Run typecheck
run: |
Expand Down
4 changes: 2 additions & 2 deletions tools/fail_if_no_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@

if not pymongo.has_c() or not bson.has_c():
try:
from pymongo import _cmessage # noqa: F401
pass # type:ignore[attr-defined] noqa: F401
except Exception as e:
print(e)
try:
from bson import _cbson # noqa: F401
pass # type:ignore[attr-defined] noqa: F401
except Exception as e:
print(e)
sys.exit("could not load C extensions")
Expand Down

0 comments on commit fd6d343

Please sign in to comment.