Skip to content
Snippets Groups Projects
Commit 0819c63b authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

Added installation routines

* Added python packaging information
* Changed mkexp to look for templates in current directory, not in installation
* Added Makefile as wrapper to python packaging (install)
parent 2397c41b
No related branches found
No related tags found
No related merge requests found
Copyright (c) 2013 Max-Planck-Institut fuer Meteorologie, Hamburg, Germany
Copying and distribution of this package, with or without modification, are
permitted in any medium without royalty provided the copyright notice and this
notice are preserved. This package is offered as-is, without any warranty.
\ No newline at end of file
include LICENSE.txt
\ No newline at end of file
Makefile 0 → 100644
name = mkexp
version = 0.1.0dev
package = $(name)-$(version)
programs = mkexp expdiff expdiff_path
prefix = /usr/local
all:
clean:
rm -rf build dist MANIFEST *.pyc
doc:
dist: __FORCE__
python setup.py sdist
install: all
python setup.py install --prefix=$(prefix)
__FORCE__:
=================================================================
Make Experiments! - Run-script generation for earth system models
=================================================================
Make Experiments! (mkexp) contains a set of tools for preparing experiments
with the MPI-M's earth system models.
mkexp
takes a simple configuration file from the user and the templates provided
by the model to generate a set of shell scripts that - when run - will set
up directories, prepare input data, define configurations, and launch the
actual model run and processing.
expdiff
is a tool that - given two mkexp configuration files - will compare the
generated scripts with either the standard diff program or any equivalent
tool, taking care of differences by experiment names etc. It is complemented
by expdiff_path which does the same kind of diff but takes its information
from the command line instead.
......@@ -17,9 +17,8 @@ from jinja2 import Environment, FileSystemLoader
# Basic settings
#
base_dir = os.path.dirname(sys.argv[0])
exp_lib_dir = os.path.join(base_dir, 'standard_experiments')
que_lib_dir = os.path.join(base_dir, 'standard_queue_settings')
exp_lib_dir = 'standard_experiments'
que_lib_dir = 'standard_queue_settings'
default_name = 'exp'
logging.basicConfig(format='%(levelname)s: %(message)s')
......
setup.py 0 → 100644
from distutils.core import setup
name = 'mkexp'
version = '0.1.0dev'
setup(
name = name,
version = version,
description = 'Run-script generation for earth system models',
long_description = open('README.txt').read(),
author = 'Karl-Hermann Wieners',
author_email = 'karl-hermann.wieners@mpimet.mpg.de',
url = 'http://code.zmaw.de/projects/esmenv',
py_modules = ['configobj', 'validate'],
scripts = ['mkexp'],
platforms = ['Posix'],
license = 'LICENSE.txt',
data_files = [('share/doc/'+name+'-'+version+'/examples',
['examples/khw0000.config'])],
requires = ['Jinja2(>= 2.6)']
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment