[libvirt] [libvirt-python][PATCH] Don't hardcode interpreter path

Cédric Bosdonnat posted 1 patch 6 years, 4 months ago
Failed in applying to current master (apply log)
examples/event-test.py | 2 +-
generator.py           | 2 +-
sanitytest.py          | 2 +-
setup.py               | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
[libvirt] [libvirt-python][PATCH] Don't hardcode interpreter path
Posted by Cédric Bosdonnat 6 years, 4 months ago
This is particularly useful on operating systems that don't ship
Python as part of the base system (eg. FreeBSD) while still working
just as well as it did before on Linux.
---
 examples/event-test.py | 2 +-
 generator.py           | 2 +-
 sanitytest.py          | 2 +-
 setup.py               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/event-test.py b/examples/event-test.py
index 4eb7142..2587226 100755
--- a/examples/event-test.py
+++ b/examples/event-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 #
 #
 #
diff --git a/generator.py b/generator.py
index 59e7531..74150b7 100755
--- a/generator.py
+++ b/generator.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python -u
+#!/usr/bin/env python
 #
 # generate python wrappers from the XML API description
 #
diff --git a/sanitytest.py b/sanitytest.py
index a5cb01b..1d65e8d 100644
--- a/sanitytest.py
+++ b/sanitytest.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import sys
 import lxml
diff --git a/setup.py b/setup.py
index 3cdfcbf..05a981e 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 from distutils.core import setup, Extension, Command
 from distutils.command.build import build
-- 
2.15.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [libvirt-python][PATCH] Don't hardcode interpreter path
Posted by Daniel P. Berrange 6 years, 4 months ago
On Wed, Nov 29, 2017 at 06:12:48PM +0100, Cédric Bosdonnat wrote:
> This is particularly useful on operating systems that don't ship
> Python as part of the base system (eg. FreeBSD) while still working
> just as well as it did before on Linux.
> ---
>  examples/event-test.py | 2 +-
>  generator.py           | 2 +-
>  sanitytest.py          | 2 +-
>  setup.py               | 2 +-
>  4 files changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list