Skip to content

Commit 82976f0

Browse files
authored
Merge pull request #141 from mattip/no-patch
use new LIBNAMEPREFIX, LIBNAMESUFFIS, FIXED_LIBNAME options instead of patching
2 parents 087e7b5 + 54149c4 commit 82976f0

File tree

9 files changed

+14
-196
lines changed

9 files changed

+14
-196
lines changed

.github/workflows/posix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
INTERFACE64: '1'
4848
env:
4949
REPO_DIR: OpenBLAS
50-
OPENBLAS_COMMIT: "v0.3.26"
50+
OPENBLAS_COMMIT: "5403900539"
5151
NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
5252
MACOSX_DEPLOYMENT_TARGET: 10.9
5353
MB_PYTHON_VERSION: ${{ matrix.python-version }}

.github/workflows/windows.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ main ]
88

99
env:
10-
OPENBLAS_COMMIT: "v0.3.26"
10+
OPENBLAS_COMMIT: "5403900539"
1111
OPENBLAS_ROOT: "c:\\opt"
1212
# Preserve working directory for calls into bash
1313
# Without this, invoking bash will cd to the home directory
@@ -27,6 +27,7 @@ jobs:
2727
fail-fast: false
2828
runs-on: ${{ matrix.os }}
2929

30+
timeout-minutes: 90
3031
steps:
3132
- uses: actions/[email protected]
3233
- name: install-rtools

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ env:
22
global:
33
# The archive that gets built has name from ``git describe`` on this
44
# commit.
5-
- OPENBLAS_COMMIT="v0.3.26"
5+
- OPENBLAS_COMMIT="5403900539"
66
- REPO_DIR=OpenBLAS
77

88
language: python

OpenBLAS

patches/0001-create-a-single-shared-object.patch

Lines changed: 0 additions & 185 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "scipy-openblas64"
11-
version = "0.3.26.0.5"
11+
version = "0.3.26.238.0"
1212
requires-python = ">=3.7"
1313
description = "Provides OpenBLAS for python packaging"
1414
readme = "README.md"

tools/build_openblas.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ if [ "$if_bits" == "64" ]; then
8383
else
8484
interface_flags=""
8585
fi
86-
interface_flags="$interface_flags SYMBOLPREFIX=scipy_"
86+
# On windows, the LIBNAMEPREFIX is not needed, SYMBOLPREFIX is added to the lib
87+
# name LIBPREFIX in Makefile.system.
88+
interface_flags="$interface_flags SYMBOLPREFIX=scipy_ FIXED_LIBNAME=1"
8789

8890
# Build name for output library from gcc version and OpenBLAS commit.
8991
GCC_TAG="gcc_$(gcc -dumpversion | tr .- _)"
9092
OPENBLAS_VERSION=$(git describe --tags --abbrev=8)
9193
# Build OpenBLAS
9294
# Variable used in creating output libraries
93-
export LIBNAMESUFFIX=${OPENBLAS_VERSION}-${GCC_TAG}
9495
make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
9596
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
9697
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
@@ -100,7 +101,7 @@ make BINARY=$build_bits DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
100101
MAX_STACK_ALLOC=2048 \
101102
$interface_flags
102103
make PREFIX=$openblas_root/$build_bits $interface_flags install
103-
DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX}_${LIBNAMESUFFIX}
104+
DLL_BASENAME=libscipy_openblas${SYMBOLSUFFIX}${LIBNAMESUFFIX}
104105

105106
# OpenBLAS does not build a symbol-suffixed static library on Windows:
106107
# do it ourselves. On 32-bit builds, the objcopy.def names need a '_' prefix

tools/build_steps.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,18 @@ function do_build_lib {
149149
esac
150150
case $interface64 in
151151
1)
152-
local interface_flags="INTERFACE64=1 SYMBOLSUFFIX=64_ SYMBOLPREFIX=scipy_ OBJCONV=$PWD/objconv/objconv";
152+
local interface_flags="INTERFACE64=1 SYMBOLSUFFIX=64_ LIBNAMESUFFIX=64_ OBJCONV=$PWD/objconv/objconv";
153153
local symbolsuffix="64_";
154154
if [ -n "$IS_OSX" ]; then
155155
$PWD/objconv/objconv --help
156156
fi
157157
;;
158158
*)
159-
local interface_flags="SYMBOLPREFIX=scipy_ OBJCONV=$PWD/objconv/objconv"
159+
local interface_flags="OBJCONV=$PWD/objconv/objconv"
160160
local symbolsuffix="";
161161
;;
162162
esac
163+
interface_flags="$interface_flags SYMBOLPREFIX=scipy_ LIBNAMEPREFIX=scipy_ FIXED_LIBNAME=1"
163164
mkdir -p libs
164165
start_spinner
165166
set -x

0 commit comments

Comments
 (0)