Skip to content

apes-suite/apes-pyenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Environment for APES

This repository serves as a small gathering tool to provide a Python virtual environment for the Python tools that are useful in development and usage of the APES software.

Run source apes-pyenv/activate to activate this Python environment. While in the active environment, you can check the current version information with env-version.

Then you can also install the APES applications into the environment with:

FC=mpif90 bin/waf configure install --prefix=$VIRTUAL_ENV

For example to have Seeder and Musubi installed:

cd seeder
FC=mpif90 bin/waf configure install --prefix=$VIRTUAL_ENV
cd ../musubi
FC=mpif90 bin/waf configure install --targets=musubi,mus_harvesting --prefix=$VIRTUAL_ENV

Here Seeder would install all the smaller tools and libraries, while Musubi only installs the two requested executables.

Note on graph generation in FORD

The documentation in the APES simulation tools is generated by FORD. If you want it to generate call graphs, you need to have graphviz installed on your system.

Step by step instructions to setup a development environment

We'll use musubi in this example and use an apes directory in our home (you could use any other directory of course) and we use git with ssh, though you could of course also use any other option to clone the repositories:

mkdir ~/apes
cd ~/apes
git clone git@github.com:apes-suite/apes-pyenv.git
source apes-pyenv/activate
git clone --recurse-submodules git@github.com:apes-suite/seeder.git
cd seeder
FC=mpif90 bin/waf configure install --prefix=$VIRTUAL_ENV
cd ..
git clone --recurse-submodules git@github.com:apes-suite/musubi.git
cd musubi
FC=mpif90 bin/waf configure install --targets=musubi,mus_harvesting --prefix=$VIRTUAL_ENV

Development of the python packages themselves

For the development of the python packages you may want to make use of editable pip installs like this:

python -m pip install --force-reinstall -e local/repo

About

Python environment for the APES Python helper tools

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •