-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix cmake variables. Add file with conda dev requirements.
- Loading branch information
Showing
6 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This is the set of conda packages needed when creating | ||
# a development environment for building spt3g / so3g | ||
# using conda compilers and packages to meet dependencies. | ||
# | ||
# For example, assuming you have a conda-forge base environment | ||
# you can do: | ||
# | ||
# conda create -n dev python==3.12 | ||
# conda activate dev | ||
# conda install --file conda_dev_requirements.txt | ||
# python3 -m pip install -vv . | ||
# | ||
# Build tools | ||
compilers | ||
cmake | ||
# Compiled dependencies | ||
libopenblas=*=*openmp* | ||
libblas=*=*openblas | ||
openblas=*=*openmp* | ||
boost | ||
libflac | ||
gsl | ||
# Python dependencies | ||
numpy | ||
scipy | ||
astropy | ||
matplotlib | ||
ephem | ||
pytz | ||
pyaml | ||
sqlalchemy | ||
tqdm | ||
# Eventually we should make a conda package for these: | ||
# qpoint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
np_incl=$(python3 -c 'import numpy as np; print(np.get_include())') | ||
|
||
mkdir -p build | ||
cd build | ||
cmake \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DPython_EXECUTABLE=$(which python3) \ | ||
-DPython_NumPy_INCLUDE_DIRS="${np_incl}" \ | ||
.. | ||
make -j 2 | ||
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff -urN spt3g_software_orig/dfmux/CMakeLists.txt spt3g_software/dfmux/CMakeLists.txt | ||
--- spt3g_software_orig/dfmux/CMakeLists.txt 2025-01-06 11:29:16.606854658 -0800 | ||
+++ spt3g_software/dfmux/CMakeLists.txt 2025-01-07 10:15:20.506190895 -0800 | ||
@@ -1,5 +1,9 @@ | ||
-find_package(NetCDF MODULE) | ||
-find_package(HDF5) | ||
+if(NOT DISABLE_NETCDF) | ||
+ find_package(NetCDF MODULE) | ||
+endif() | ||
+if(NOT DISABLE_HDF5) | ||
+ find_package(HDF5) | ||
+endif() | ||
if (NetCDF_FOUND AND HDF5_FOUND) | ||
set(DFMUX_LIB_EXTRA_SRC src/NetCDFDump.cxx) | ||
else() |