Skip to content

Commit 027aebd

Browse files
committed
Slycot source uses setuptools_scm
1 parent 2f29a4c commit 027aebd

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/control-slycot-src.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- name: Checkout python-control
11+
uses: actions/checkout@v3
12+
with:
13+
path: python-control
1114
- name: Set up Python
1215
uses: actions/setup-python@v2
1316
- name: Install Python dependencies
@@ -24,18 +27,28 @@ jobs:
2427
# Install python-control dependencies
2528
conda install numpy matplotlib scipy
2629
30+
- name: Checkout Slycot
31+
uses: actions/checkout@v3
32+
with:
33+
repository: python-control/Slycot
34+
submodules: recursive
35+
fetch-depth: 0
36+
path: slycot
2737
- name: Install slycot from source
38+
env:
39+
BLA_VENDOR: Generic
40+
CMAKE_GENERATOR: Unix Makefiles
41+
working-directory: slycot
2842
run: |
2943
# Install compilers, libraries, and development environment
3044
sudo apt-get -y install gfortran cmake --fix-missing
3145
sudo apt-get -y install libblas-dev liblapack-dev
32-
conda install -c conda-forge scikit-build;
46+
conda install -c conda-forge scikit-build setuptools-scm
3347
3448
# Compile and install slycot
35-
git clone https://github.com/python-control/Slycot.git slycot
36-
cd slycot
3749
git submodule update --init
38-
python setup.py build_ext install -DBLA_VENDOR=Generic
50+
pip install -v --no-build-isolation --no-deps .
3951
4052
- name: Test with pytest
53+
working-directory: python-control
4154
run: xvfb-run --auto-servernum pytest control/tests

0 commit comments

Comments
 (0)