Skip to content

Commit

Permalink
Pin BLAS implementation to OpenBLAS (#201)
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Höchenberger <[email protected]>
  • Loading branch information
larsoner and hoechenberger authored Aug 23, 2023
1 parent c391e2d commit 1825c91
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
3 changes: 3 additions & 0 deletions assets/post_install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ ${PREFIX}/bin/conda env config vars set PYTHONNOUSERSITE=1
echo "ℹ️ Disabling mamba package manager banner."
${PREFIX}/bin/conda env config vars set MAMBA_NO_BANNER=1

echo "ℹ️ Pinning BLAS implementation to OpenBLAS"
echo "libblas=*=*openblas" >>${PREFIX}/conda-meta/pinned

echo "ℹ️ Running mne sys_info."
${PREFIX}/bin/conda run mne sys_info || true
3 changes: 3 additions & 0 deletions assets/post_install_macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ ${DSTBIN}/conda env config vars set MAMBA_NO_BANNER=1
logger -p 'install.info' "ℹ️ Configuring Matplotlib to use the Qt backend by default"
sed -i '.bak' "s/##backend: Agg/backend: qtagg/" ${DSTROOT}/.mne-python/lib/python${PYSHORT}/site-packages/matplotlib/mpl-data/matplotlibrc

logger -p 'install.info' "ℹ️ Pinning BLAS implementation to OpenBLAS"
echo "libblas=*=*openblas" >>${DSTROOT}/.mne-python/conda-meta/pinned

logger -p 'install.info' "Fixing permissions of entire conda environment"
chown -R $USER_FROM_HOMEDIR "${DSTROOT}/.mne-python"

Expand Down
3 changes: 3 additions & 0 deletions assets/post_install_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ echo ℹConfiguring Python to ignore user-installed local packages.
echo ℹDisabling mamba package manager banner.
"%PREFIX%\bin\conda" env config vars set MAMBA_NO_BANNER=1

echo ℹPinning BLAS implementation to OpenBLAS
echo "libblas=*=*openblas" >>"%PREFIX%\bin\conda\conda-meta\pinned"

echo ℹRunning mne sys_info.
"%PREFIX%\bin\conda" run mne sys_info
34 changes: 18 additions & 16 deletions recipes/mne-python_1.5/construct.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.5.0_0
version: 1.5.0_1
name: MNE-Python
company: MNE-Python Developers
# When the version above changes to a new major/minor, it needs to be updated
Expand All @@ -18,17 +18,17 @@ conclusion_file: ../../assets/conclusion.rtf
initialize_by_default: false
register_python_default: false

default_prefix: ${HOME}/mne-python/1.5.0_0 # [linux]
default_prefix: "%USERPROFILE%\\mne-python\\1.5.0_0" # [win]
default_prefix_domain_user: "%LOCALAPPDATA%\\mne-python\\1.5.0_0" # [win]
default_prefix_all_users: "%ALLUSERSPROFILE%\\mne-python\\1.5.0_0" # [win]
default_prefix: ${HOME}/mne-python/1.5.0_1 # [linux]
default_prefix: "%USERPROFILE%\\mne-python\\1.5.0_1" # [win]
default_prefix_domain_user: "%LOCALAPPDATA%\\mne-python\\1.5.0_1" # [win]
default_prefix_all_users: "%ALLUSERSPROFILE%\\mne-python\\1.5.0_1" # [win]

uninstall_name: MNE-Python ${VERSION} (Python ${PYVERSION})

installer_filename: MNE-Python-1.5.0_0-macOS_Intel.pkg # [osx and not arm64]
installer_filename: MNE-Python-1.5.0_0-macOS_M1.pkg # [osx and arm64]
installer_filename: MNE-Python-1.5.0_0-Windows.exe # [win]
installer_filename: MNE-Python-1.5.0_0-Linux.sh # [linux]
installer_filename: MNE-Python-1.5.0_1-macOS_Intel.pkg # [osx and not arm64]
installer_filename: MNE-Python-1.5.0_1-macOS_M1.pkg # [osx and arm64]
installer_filename: MNE-Python-1.5.0_1-Windows.exe # [win]
installer_filename: MNE-Python-1.5.0_1-Linux.sh # [linux]

post_install: ../../assets/post_install_macOS.sh # [osx]
post_install: ../../assets/post_install_linux.sh # [linux]
Expand Down Expand Up @@ -64,7 +64,7 @@ specs:

- mne =1.5.0=*_0
- mne-installer-menus =1.5.0=*_0
- mne-bids =0.12.0
- mne-bids =0.13.0
- mne-bids-pipeline =1.4.0
- mne-qt-browser =0.5.2
- mne-connectivity =0.5.0
Expand All @@ -82,12 +82,14 @@ specs:
- pyriemann =0.5
- pyprep =0.4.2
- openmeeg =2.5.6
# BLAS
- openblas =0.3.23
- libblas =3.9.0=*openblas
# Python
- python =3.11.4
- pip =23.2.1
- conda =23.5.2
- mamba =1.4.9
- openblas =0.3.23
- jupyter =1.0.0
- jupyterlab =4.0.5
- ipykernel =6.25.1
Expand All @@ -105,7 +107,7 @@ specs:
- pingouin =0.5.3
- pycircstat =0.0.2
# MRI
- fsleyes =1.7.0
- fsleyes =1.8.2
- dcm2niix =1.0.20230411
# Time-frequency analysis
- pactools =0.3.1
Expand All @@ -126,17 +128,17 @@ specs:
# various biological signals (ECG, EOG, EMG, …)
- neurokit2 =0.2.5
# GitHub client, https://cli.github.com
- gh =2.32.1
- gh =2.33.0
# NeuroSpin needs the following
- questionary =2.0.0
- pqdm =0.2.0
# Viz
- matplotlib =3.7.2
- ipympl =0.9.3
- seaborn =0.12.2
- plotly =5.16.0
- plotly =5.16.1
- vtk =9.2.6
- git =2.41.0 # [win]
- git =2.42.0 # [win]
- make =4.3 # [win]
- ipywidgets =8.1.0

Expand All @@ -146,4 +148,4 @@ condarc:
- conda-forge
channel_priority: strict
allow_other_channels: false
env_prompt: "(mne-1.5.0_0) "
env_prompt: "(mne-1.5.0_1) "

0 comments on commit 1825c91

Please sign in to comment.