Skip to content

Commit 0f8ba1c

Browse files
committed
Build mathlib in github actions
1 parent 0d4301b commit 0f8ba1c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
python -m pip install --upgrade pip
2121
pip install flake8 pytest
2222
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
23+
- name: Build mathlib
24+
run: |
25+
python setup.py build_ext --inplace
2326
- name: Lint with flake8
2427
run: |
2528
# stop the build if there are Python syntax errors or undefined names

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from setuptools import setup, find_packages, Extension
2-
from uilib.fileIO import appVersionStr
32
from Cython.Build import cythonize
43
import numpy
54
import multiprocessing
@@ -12,6 +11,12 @@
1211
build_ui = None # user won't have pyqt_distutils when deploying
1312
cmdclass = {}
1413

14+
try:
15+
from uilib.fileIO import appVersionStr
16+
except ImportError:
17+
print('App version not available, defaulting to 0.0.0')
18+
appVersionStr = '0.0.0'
19+
1520
extensions = [
1621
Extension(
1722
"mathlib._find_perimeter_cy", # Full module path

0 commit comments

Comments
 (0)