Commit 19b6eea4 authored by julian.gethmann's avatar julian.gethmann

Add PyNAFF role

parent 8dda8cc4
......@@ -31,6 +31,10 @@ las-gethmann.las.kit.edu
[kdev] # KDevelope
[pynaff]
las-gethmann.las.kit.edu
las113.las.kit.edu
[latex]
las-gethmann.las.kit.edu
las122.las.kit.edu
......
- hosts: pynaff
roles:
- naff_cpp
---
# Install Sofia Kostoglou's (CERN) C++/Python 2.7 NAFF implementation
- name: install boost
become: yes
dnf:
name: "{{ item }}"
state: installed
with_items:
- boost-devel
# boost
# boost-container
# boost-context
# boost-coroutine
# boost-devel
# boost-graph
# boost-locale
# boost-log
# boost-math
# boost-program-options
# boost-python
# boost-random
# boost-regex
# boost-serialization
# boost-signals
# boost-test
# boost-timer
# boost-type_erasure
# boost-wave
# libicu-devel
- fftw-devel
# fftw
# fftw-libs
# fftw-libs-long
# fftw-libs-quad
- cmake
when: ansible_distribution == 'Fedora'
- name: test if NAFF is installed
command: python -c "import NAFF"
register: not_there
ignore_errors: True
changed_when: not_there.rc == 1
- name: clone git
git:
repo: https://github.com/skostogl/NAFF_cpp.git
version: master
dest: /tmp/NAFF_cpp
clone: yes
depth: 1
when: not_there.rc == 1
- name: build
command: cmake ..
args:
chdir: /tmp/NAFF_cpp/build
creates: /tmp/NAFF_cpp/build/Makefile
when: not_there.rc == 1
- name: make
make:
chdir: /tmp/NAFF_cpp/build
when: not_there.rc == 1
- name: copy shared object to Python's path
become: yes
copy:
src: /tmp/NAFF_cpp/NAFF.so
dest: /usr/lib/python2.7/site-packages/NAFF.so
backup: yes
remote_src: True
when: not_there.rc == 1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment