Skip to content

Commit 9bda3f1

Browse files
committed
Use GITHUB_RUN_ID envvar everywhere to decide if build wheels shell scripts should run
1 parent e1fa208 commit 9bda3f1

15 files changed

+16
-16
lines changed

scripts/wheelbuilder/linux/cffi.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y libffi-devel
4242
fi

scripts/wheelbuilder/linux/cryptography.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y libffi-devel openssl-devel
4242
fi

scripts/wheelbuilder/linux/h5py.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y hdf5-devel
4242
fi

scripts/wheelbuilder/linux/levenshtein.0.26.1.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
git clone --single-branch --branch v3.3.2 --depth 1 https://github.com/rapidfuzz/rapidfuzz-cpp.git rapidfuzz-cpp
4242
cd rapidfuzz-cpp
4343
mkdir build && cd build
@@ -52,7 +52,7 @@ pip install 'Cython==3.0.11' 'scikit_build_core==0.11.1'
5252
pip install --no-build-isolation 'rapidfuzz==3.12.1'
5353
pip wheel --no-build-isolation 'levenshtein==0.26.1'
5454

55-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
55+
if [ -n "$GITHUB_RUN_ID" ]; then
5656
cd rapidfuzz-cpp
5757
cd build
5858
xargs rm < install_manifest.txt

scripts/wheelbuilder/linux/lxml.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y libxml2-devel libxslt-devel
4242
fi

scripts/wheelbuilder/linux/numpy.1.23.2.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y gcc-toolset-9 gcc-toolset-9-gcc-gfortran openblas-devel
4242
scl enable gcc-toolset-9 'pip wheel "numpy==1.23.2"'
4343
fi

scripts/wheelbuilder/linux/numpy.1.24.3.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y gcc-toolset-9 gcc-toolset-9-gcc-gfortran openblas-devel
4242
scl enable gcc-toolset-9 'pip wheel "numpy==1.24.3"'
4343
fi

scripts/wheelbuilder/linux/numpy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y gcc-toolset-12-gcc-gfortran openblas-devel
4242
fi

scripts/wheelbuilder/linux/pillow.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y libtiff-devel libjpeg-devel openjpeg2-devel zlib-devel freetype-devel lcms2-devel
4242
fi

scripts/wheelbuilder/linux/pyarrow.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y libffi-devel \
4242
boost-devel \
4343
snappy-devel \

scripts/wheelbuilder/linux/pynacl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y libffi-devel
4242
fi

scripts/wheelbuilder/linux/scipy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y gcc-toolset-12-gcc-gfortran openblas-devel
4242
fi
4343
export FFLAGS=-fallow-argument-mismatch

scripts/wheelbuilder/linux/tensorflow.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y openblas-devel /usr/bin/cmake /usr/bin/sudo /usr/bin/curl java-11-openjdk-devel
4242
fi
4343
pip install pip numpy wheel packaging requests opt_einsum

scripts/wheelbuilder/linux/torch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y openblas-devel /usr/bin/cmake /usr/bin/sudo libffi-devel
4242
export USE_CUDA=0
4343
fi

scripts/wheelbuilder/linux/zstandard.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3838
# SOFTWARE.
3939

40-
if command -v manylinux-interpreters 2>&1 >/dev/null; then
40+
if [ -n "$GITHUB_RUN_ID" ]; then
4141
dnf install -y libffi-devel
4242
fi

0 commit comments

Comments
 (0)