Skip to content

Commit bd4afeb

Browse files
committed
ensure /usr/local/lib exists before installing gfortran
1 parent 5c48097 commit bd4afeb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/build_steps.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Build script for manylinux and OSX
22
BUILD_PREFIX=/usr/local
3-
# OSX gfortran archive
4-
GFORTRAN_DMG="archives/gfortran-4.9.0-Mavericks.dmg"
53

64
ROOT_DIR=$(dirname $(dirname "${BASH_SOURCE[0]}"))
75
source ${ROOT_DIR}/multibuild/common_utils.sh
8-
source ${ROOT_DIR}/gfortran-install/gfortran_utils.sh
96

107
MB_PYTHON_VERSION=3.9
118

129
function before_build {
1310
# Manylinux Python version set in build_lib
1411
if [ -n "$IS_OSX" ]; then
12+
sudo mkdir -p /usr/local/lib
13+
sudo chmod 777 /usr/local/lib
1514
source ${ROOT_DIR}/multibuild/osx_utils.sh
1615
get_macpython_environment ${MB_PYTHON_VERSION} venv
1716
source ${ROOT_DIR}/gfortran-install/gfortran_utils.sh
@@ -89,7 +88,6 @@ function build_lib {
8988
#
9089
# Depends on globals
9190
# BUILD_PREFIX - install suffix e.g. "/usr/local"
92-
# GFORTRAN_DMG
9391
# MB_ML_VER
9492
set -x
9593
local plat=${1:-$PLAT}

0 commit comments

Comments
 (0)