From 214c57a1fe3e3304ed89b7a9d538cadb800edfb2 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Mon, 30 Apr 2018 19:53:30 +0200 Subject: [PATCH] Python2 --- Makefile | 2 +- README.rst | 4 ++-- build.ninja | 2 +- configure.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 29ca5d1..d56f8a5 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ archive: distclean rm -rf EZFIO make.config: - python configure.py + ./configure.py veryclean: $(MAKE) -C src veryclean diff --git a/README.rst b/README.rst index 459f1c8..32ff6e5 100644 --- a/README.rst +++ b/README.rst @@ -186,7 +186,7 @@ Create a file named ``create_input.py`` with: .. code-block:: python - #!/usr/bin/python + #!/usr/bin/python2 import sys EZFIO = "./EZFIO" # Put here the absolute path to the EZFIO directory @@ -229,7 +229,7 @@ Execute the script: .. code-block:: bash - $ python create_input.py + $ python2 create_input.py 18.0 The printed mass is correct, and a new directory (``Water``) was created with our data: diff --git a/build.ninja b/build.ninja index bafb5d1..feeb8fa 100644 --- a/build.ninja +++ b/build.ninja @@ -1,7 +1,7 @@ include version rule build_generated_ninja - command = python configure.py + command = python2 configure.py description = Creating generated.ninja rule run_ninja diff --git a/configure.py b/configure.py index 01ab439..cdedd88 100755 --- a/configure.py +++ b/configure.py @@ -116,11 +116,11 @@ rule build_libezfio_irp_a description = Building libezfio_irp.a rule build_python - command = cd src ; python create_python.py + command = cd src ; python2 create_python.py description = Building Python module rule build_ocaml - command = cd src ; python create_ocaml.py + command = cd src ; python2 create_ocaml.py description = Building Ocaml module build {irpf90_files}: compile_irpf90 | {irpf90_sources} {CONFIG_FILES}