-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
63 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Echo each command | ||
set -x | ||
|
||
# Exit on error. | ||
set -e | ||
|
||
# Core deps. | ||
sudo apt-get install wget | ||
|
||
# Install conda+deps. | ||
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniforge.sh | ||
export deps_dir=$HOME/local | ||
export PATH="$HOME/miniforge/bin:$PATH" | ||
bash miniforge.sh -b -p $HOME/miniforge | ||
conda create -y -q -p $deps_dir c-compiler cxx-compiler cmake libboost-devel libboost-python-devel python=3.11 scipy matplotlib ninja | ||
source activate $deps_dir | ||
|
||
# Create the build dir and cd into it. | ||
mkdir build | ||
|
||
# Install keplerian_toolbox | ||
cd build | ||
cmake \ | ||
-DBoost_NO_BOOST_CMAKE=ON \ | ||
-DCMAKE_INSTALL_PREFIX=$deps_dir \ | ||
-DCMAKE_PREFIX_PATH=$deps_dir \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DPYKEP_BUILD_KEP_TOOLBOX=yes \ | ||
-DPYKEP_BUILD_PYKEP=no \ | ||
-DPYKEP_BUILD_SPICE=yes \ | ||
-DPYKEP_BUILD_TESTS=yes \ | ||
.. | ||
make VERBOSE=1 install | ||
ctest -j4 -V | ||
cd .. | ||
|
||
# Install pykep | ||
mkdir build_pykep | ||
cd build_pykep | ||
cmake \ | ||
-DBoost_NO_BOOST_CMAKE=ON \ | ||
-DCMAKE_INSTALL_PREFIX=$deps_dir \ | ||
-DCMAKE_PREFIX_PATH=$deps_dir \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DPYKEP_BUILD_KEP_TOOLBOX=no \ | ||
-DPYKEP_BUILD_PYKEP=yes \ | ||
.. | ||
|
||
make VERBOSE=1 install | ||
python -c "import pykep.test; pykep.test.run_test_suite()" | ||
set +e | ||
set +x |