mirror of
https://github.com/numpy/numpy.git
synced 2026-09-21 16:25:04 +00:00
Page:
Building on a mac
Pages
BLAS desiderata
Backwards incompatible ideas for a major release
Building on a mac
Debugging CI guidelines
Dispatching container functions (e.g., concatenate) to duck arrays
Dtype Brainstorming
FMod Bug on Windows
Getting Started With The C side of Numpy
Github Queries
Google Season of Docs 2020 Project Ideas
Google Season of Docs 2021 Project Ideas
Google Season of Docs 2021: NumPy Case Study
Google Season of Docs 2021: Submitted Project
Google Season of Docs 2022 NumPy Project
Google Season of Docs 2023: NumPy case study
Google Season of Docs 2023: Project Proposal
Google Season of Docs 2024: NumPy case study
Google Season of Docs 2024: Project Proposal
Home
NumPy Roadmap
NumPy roadmap v2
Numerical software on Windows
Numpy BoF at Scipy 2014
Promotion Difficulties
Reference Count Testing
SciPy 2015 developer meeting
Scipy 2013
Scripted responses
Teaching SciPy: BoF at Scipy 2014
Translations of the NumPy website
ufunc and binop overrides and behavior suggestions
No results
1
Building on a mac
Matti Picus edited this page 2020-07-10 09:32:36 +03:00
Table of contents
(Draft)
Accumulated knowlege for building NumPy on a macOS machine. Please add your hints with a date
2020-07-10
Here is what I (mattip) think the numpy build does on Azure:
#!/bin/bash
function get_gfortran() {
sudo xcode-select -s /Applications/Xcode_10.app/Contents/Developer
curl -L https://github.com/MacPython/gfortran-install/raw/master/archives/gfortran-4.9.0-Mavericks.dmg -o gfortran.dmg
GFORTRAN_SHA256=$(shasum -a 256 gfortran.dmg)
KNOWN_SHA256="d2d5ca5ba8332d63bbe23a07201c4a0a5d7e09ee56f0298a96775f928c3c4b30 gfortran.dmg"
if [ "$GFORTRAN_SHA256" != "$KNOWN_SHA256" ]; then
echo sha256 mismatch
exit 1 # crashes your shell, watch out
fi
hdiutil attach -mountpoint /Volumes/gfortran gfortran.dmg
sudo installer -pkg /Volumes/gfortran/gfortran.pkg -target /
otool -L /usr/local/gfortran/lib/libgfortran.3.dylib
# Manually symlink gfortran-4.9 to plain gfortran for f2py.
# No longer needed after Feb 13 2020 as gfortran is already present
# and the attempted link errors. Keep this for future reference.
# ln -s /usr/local/bin/gfortran-4.9 /usr/local/bin/gfortran
}
function get_openblas() {
target=$(python tools/openblas_support.py)
# manually link to appropriate system paths
cp $target/lib/lib* /usr/local/lib/
cp $target/include/* /usr/local/include/
otool -L /usr/local/lib/libopenblas*
}
get_gfortran()
get_openblas()
python -m pip install -r test_requirements.txt
BLAS: None
LAPACK: None
ATLAS: None
CC: /usr/bin/clang
python setup.py build -j 4 build_src --verbose-cfg install