mirror of
https://gitlab.com/scemama/EZFIO.git
synced 2025-01-03 01:55:44 +01:00
Python2
This commit is contained in:
parent
ef8ac2a2c5
commit
214c57a1fe
2
Makefile
2
Makefile
@ -45,7 +45,7 @@ archive: distclean
|
||||
rm -rf EZFIO
|
||||
|
||||
make.config:
|
||||
python configure.py
|
||||
./configure.py
|
||||
|
||||
veryclean:
|
||||
$(MAKE) -C src veryclean
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user