Commit 742f9d72 authored by Thomas Leibovici's avatar Thomas Leibovici
Browse files

Explicit use of python2



Phobos code is currently based on python2.
Explicitely use this version on python to be compliant with systems where
python3 is the default.

Change-Id: I48784d76117f27b65861bd8fa1fddac4ead16db7
Signed-off-by: default avatarThomas Leibovici <thomas.leibovici@cea.fr>
Reviewed-on: https://cws-fleury.labs.ocre.cea.fr/gerrit/6726


Reviewed-by: Linter
Reviewed-by: default avatarPatrice LUCAS <patrice.lucas@cea.fr>
Reviewed-by: default avatarSebastien Gougeaud <sebastien.gougeaud@cea.fr>
Tested-by: default avatarJenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr>
parent 4522ed5b
......@@ -67,6 +67,8 @@ CFLAGS="$CFLAGS -I\$(top_srcdir)/src/include"
AC_ARG_ENABLE( [cli], AS_HELP_STRING([--disable-cli],
[Do not generate python cli and modules]),
[enable_cli="$enableval"],[enable_cli="yes"] )
# force using python2
PYTHON=$(which python2)
AS_IF( [test "x$enable_cli" != "xno"], [
# Enable python bindings
AX_PYTHON_DEVEL([>='2.6'])
......
......@@ -9,6 +9,7 @@ URL: http://www-hpc.cea.fr
Source0: %{name}-%{version}.tar.gz
%define phobosdocdir %{_docdir}/%{name}
%define __python /usr/bin/python2
BuildRequires: postgresql94-devel
BuildRequires: glib2-devel >= 2.28
......
#!/usr/bin/env python
#!/usr/bin/env python2
import re
import sys
......
#!/bin/sh
python -m phobos.db "$@"
python2 -m phobos.db "$@"
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2020 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2019 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2020 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2020 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2018 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2020 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2019 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2017 CEA/DAM.
......
#!/usr/bin/python
#!/usr/bin/env python2
#
# All rights reserved (c) 2014-2020 CEA/DAM.
......
Supports Markdown
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