File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed
Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ jobs:
118118 - os : ubuntu-latest
119119 python : 3.12
120120 other : /cython
121+ setup_options : --with-cython
121122 TARGET : linux
122123 PYENV : pip
123124 PACKAGES : cython
@@ -653,11 +654,7 @@ jobs:
653654
654655 - name : Install Pyomo
655656 run : |
656- # Turn on cython through env vars
657- if [[ "${{ matrix.other }}" == *cython* ]]; then
658- echo "Cython requested; turning on cythonization options in environment"
659- export PYOMO_SETUP_ARGS=--with-cython
660- fi
657+ export PYOMO_SETUP_ARGS=${{ matrix.setup_options }}
661658 echo ""
662659 echo "Clone Pyomo-model-libraries..."
663660 URL=https://github.com/Pyomo/pyomo-model-libraries.git
@@ -872,11 +869,7 @@ jobs:
872869
873870 - name : Install Pyomo
874871 run : |
875- # Turn on cython through env vars
876- if [[ "${{ matrix.other }}" == *cython* ]]; then
877- echo "Cython requested; turning on cythonization options in environment"
878- export PYOMO_SETUP_ARGS=--with-cython
879- fi
872+ export PYOMO_SETUP_ARGS=${{ matrix.setup_options }}
880873 echo ""
881874 echo "Clone Pyomo-model-libraries..."
882875 git clone https://github.com/Pyomo/pyomo-model-libraries.git
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ jobs:
127127 - os : ubuntu-latest
128128 python : 3.12
129129 other : /cython
130+ setup_options : --with-cython
130131 TARGET : linux
131132 PYENV : pip
132133 PACKAGES : cython
@@ -705,11 +706,7 @@ jobs:
705706
706707 - name : Install Pyomo
707708 run : |
708- # Turn on cython through env vars
709- if [[ "${{ matrix.other }}" == *cython* ]]; then
710- echo "Cython requested; turning on cythonization options in environment"
711- export PYOMO_SETUP_ARGS=--with-cython
712- fi
709+ export PYOMO_SETUP_ARGS=${{ matrix.setup_options }}
713710 echo ""
714711 echo "Clone Pyomo-model-libraries..."
715712 URL=https://github.com/Pyomo/pyomo-model-libraries.git
@@ -925,11 +922,7 @@ jobs:
925922
926923 - name : Install Pyomo
927924 run : |
928- # Turn on cython through env vars
929- if [[ "${{ matrix.other }}" == *cython* ]]; then
930- echo "Cython requested; turning on cythonization options in environment"
931- export PYOMO_SETUP_ARGS=--with-cython
932- fi
925+ export PYOMO_SETUP_ARGS=${{ matrix.setup_options }}
933926 echo ""
934927 echo "Clone Pyomo-model-libraries..."
935928 git clone https://github.com/Pyomo/pyomo-model-libraries.git
You can’t perform that action at this time.
0 commit comments