Blame rabbitmq-server-0004-force-python3.patch

889a63
From: Lon Hohberger <lhh@redhat.com>
889a63
Date: Tue, 29 Jan 2019 11:36:11 -0500
889a63
Subject: [PATCH] force python3
889a63
889a63
Signed-off-by: Lon Hohberger <lhh@redhat.com>
889a63
889a63
diff --git a/deps/amqp10_common/codegen.py b/deps/amqp10_common/codegen.py
889a63
index dc4480a181..cf93227177 100755
889a63
--- a/deps/amqp10_common/codegen.py
889a63
+++ b/deps/amqp10_common/codegen.py
889a63
@@ -1,4 +1,4 @@
889a63
-#!/usr/bin/env python
889a63
+#!/usr/bin/python3
889a63
 
889a63
 from __future__ import print_function
889a63
 
889a63
diff --git a/deps/amqp10_common/development.post.mk b/deps/amqp10_common/development.post.mk
889a63
index 3f8301acd1..b7f960a7e7 100644
889a63
--- a/deps/amqp10_common/development.post.mk
889a63
+++ b/deps/amqp10_common/development.post.mk
889a63
@@ -2,7 +2,7 @@
889a63
 # Framing sources generation.
889a63
 # --------------------------------------------------------------------
889a63
 
889a63
-PYTHON       ?= python
889a63
+PYTHON       ?= python3
889a63
 CODEGEN       = $(CURDIR)/codegen.py
889a63
 CODEGEN_DIR  ?= $(DEPS_DIR)/rabbitmq_codegen
889a63
 CODEGEN_AMQP  = $(CODEGEN_DIR)/amqp_codegen.py
889a63
diff --git a/deps/rabbit_common/codegen.py b/deps/rabbit_common/codegen.py
889a63
index 2e7bad69e9..8a02fcbb31 100755
889a63
--- a/deps/rabbit_common/codegen.py
889a63
+++ b/deps/rabbit_common/codegen.py
889a63
@@ -1,4 +1,4 @@
889a63
-#!/usr/bin/env python
889a63
+#!/usr/bin/python3
889a63
 
889a63
 ##  This Source Code Form is subject to the terms of the Mozilla Public
889a63
 ##  License, v. 2.0. If a copy of the MPL was not distributed with this
889a63
diff --git a/deps/rabbit_common/development.post.mk b/deps/rabbit_common/development.post.mk
889a63
index 65708dbcd7..ec905a4615 100644
889a63
--- a/deps/rabbit_common/development.post.mk
889a63
+++ b/deps/rabbit_common/development.post.mk
889a63
@@ -2,7 +2,7 @@
889a63
 # Framing sources generation.
889a63
 # --------------------------------------------------------------------
889a63
 
889a63
-PYTHON       ?= python
889a63
+PYTHON       ?= python3
889a63
 CODEGEN       = $(CURDIR)/codegen.py
889a63
 CODEGEN_DIR  ?= $(DEPS_DIR)/rabbitmq_codegen
889a63
 CODEGEN_AMQP  = $(CODEGEN_DIR)/amqp_codegen.py