Skip to content

Slycot source uses setuptools_scm now #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/control-slycot-src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout python-control
uses: actions/checkout@v3
with:
path: python-control
- name: Set up Python
uses: actions/setup-python@v2
- name: Install Python dependencies
Expand All @@ -24,18 +27,27 @@ jobs:
# Install python-control dependencies
conda install numpy matplotlib scipy

- name: Checkout Slycot
uses: actions/checkout@v3
with:
repository: python-control/Slycot
submodules: recursive
fetch-depth: 0
path: slycot
- name: Install slycot from source
env:
BLA_VENDOR: Generic
CMAKE_GENERATOR: Unix Makefiles
working-directory: slycot
run: |
# Install compilers, libraries, and development environment
sudo apt-get -y install gfortran cmake --fix-missing
sudo apt-get -y install libblas-dev liblapack-dev
conda install -c conda-forge scikit-build;
conda install -c conda-forge scikit-build setuptools-scm

# Compile and install slycot
git clone https://github.com/python-control/Slycot.git slycot
cd slycot
git submodule update --init
python setup.py build_ext install -DBLA_VENDOR=Generic
pip install -v --no-build-isolation --no-deps .

- name: Test with pytest
working-directory: python-control
run: xvfb-run --auto-servernum pytest control/tests