Skip to content

Commit 5c9fe9a

Browse files
committed
Build Wheels for Sequenzo.
1 parent 41954b7 commit 5c9fe9a

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,10 @@ jobs:
111111
112112
# 测试命令
113113
CIBW_TEST_COMMAND: >
114-
python -c "
115-
import sequenzo;
116-
print('Sequenzo import successful');
117-
try:
118-
import sequenzo.clustering.clustering_c_code;
119-
print('C++ extensions loaded');
120-
except Exception as e:
121-
print(f'WARNING C++ extensions issue: {e}')
122-
"
114+
python -c "import sequenzo; print('Sequenzo import successful');
115+
import importlib;
116+
mod = importlib.util.find_spec('sequenzo.clustering.clustering_c_code');
117+
print('C++ extensions loaded' if mod else 'WARNING: C++ extensions not found')"
123118
124119
- name: Show dist content
125120
run: ls -lah dist/

0 commit comments

Comments
 (0)