8000 Slycot source uses setuptools_scm · steadymingha/python-control@0ff9191 · GitHub
[go: up one dir, main page]

Skip to content < 8000 span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis">

Commit 0ff9191

Browse files
committed
Slycot source uses setuptools_scm
1 parent 2f29a4c commit 0ff9191

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

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

Lines changed: 18 additions & 6 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,27 @@ 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
37-
git submodule update --init
38-
python setup.py build_ext install -DBLA_VENDOR=Generic
49+
pip install -v --no-build-isolation --no-deps .
3950
4051
- name: Test with pytest
52+
working-directory: python-control
4153
run: xvfb-run --auto-servernum pytest control/tests

0 commit comments

Comments
 (0)
0