Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xapi-storage{,-script}: explicitely use python2 instead of python #4875

Merged
merged 2 commits into from
Dec 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

import sys
sys.path.append("/home/vagrant/djs55/dbus-test/python")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

import sys
sys.path.append("/home/vagrant/djs55/dbus-test/python")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

import sys
sys.path.append("/home/vagrant/djs55/dbus-test/python")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

import sys
sys.path.append("/home/vagrant/djs55/dbus-test/python")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Copyright (C) Citrix Systems, Inc.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Copyright (C) Citrix Systems, Inc.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Copyright (C) Citrix Systems, Inc.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Copyright (C) Citrix Systems, Inc.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Copyright (C) Citrix Systems, Inc.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Copyright (C) Citrix Systems, Inc.
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xapi-storage/python/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PREFIX?=/usr
PYTHON?=python
PYTHON?=python2

.PHONY: build release clean install uninstall

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# Copyright (C) Citrix Systems Inc.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# Copyright (C) Citrix Systems Inc.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# Copyright (C) Citrix Systems Inc.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# Copyright (C) Citrix Systems Inc.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
#
# Copyright (C) Citrix Systems Inc.
#
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xapi-storage/python/xapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

"""
Copyright (c) 2013-2018, Citrix Inc.
Expand Down
2 changes: 1 addition & 1 deletion ocaml/xapi-storage/python/xapi/storage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#!/usr/bin/env python
#!/usr/bin/env python2
2 changes: 1 addition & 1 deletion ocaml/xapi-storage/python/xapi/storage/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#!/usr/bin/env python
#!/usr/bin/env python2
2 changes: 1 addition & 1 deletion ocaml/xapi-storage/python/xapi/storage/api/v5/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#!/usr/bin/env python
#!/usr/bin/env python2
2 changes: 1 addition & 1 deletion ocaml/xapi-storage/python/xapi/storage/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2

from xapi.storage import log
import xapi
Expand Down
1 change: 1 addition & 0 deletions xapi-database.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ depends: [
"rpclib"
"base-threads"
"uuid"
"xapi-datamodel"
"xapi-schema"
"xapi-stdext-encodings"
"xapi-stdext-pervasives"
Expand Down
2 changes: 1 addition & 1 deletion xapi-datamodel.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ depends: [
"rpclib"
"base-threads"
"xapi-consts"
"xapi-database"
"xapi-schema"
"xapi-stdext-date"
"xapi-stdext-std"
"xapi-stdext-unix"
Expand Down
1 change: 1 addition & 0 deletions xapi-schema.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ depends: [
"dune"
"ppx_sexp_conv"
"sexpr"
"xapi-log"
"xapi-stdext-encodings"
]
synopsis: "The xapi toolstack daemon which implements the XenAPI"
Expand Down
4 changes: 0 additions & 4 deletions xapi-storage-script.opam
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ depends: [
"ppx_sexp_conv"
"xapi-stdext-date"
]
# python 2.7 is not enough to ensure the availability of 'python' in these
depexts: [
["python"] {os-family = "debian" & with-test}
]
synopsis: "A directory full of scripts can be a Xapi storage implementation"
description: """
This daemon watches a directory for subdirectories, and when a subdir
Expand Down
4 changes: 0 additions & 4 deletions xapi-storage.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ depends: [
"xmlm"
"cmdliner"
]
# python 2.7 is not enough to ensure the availability of 'python' in these
depexts: [
["python"] {os-family = "debian"}
]
synopsis: "Code and documentation generator for the Xapi storage interface"
url {
src: "https://github.com/xapi-project/xen-api/archive/master.tar.gz"
Expand Down