[Piglit] [PATCH 2/2] piglit-run.py: use python2

Vinson Lee vlee at vmware.com
Sun Oct 24 13:00:10 PDT 2010


> -----Original Message-----
> From: piglit-bounces+vlee=vmware.com at lists.freedesktop.org [mailto:piglit-
> bounces+vlee=vmware.com at lists.freedesktop.org] On Behalf Of Xavier Chantry
> Sent: Sunday, October 24, 2010 5:11 AM
> To: piglit
> Subject: [Piglit] [PATCH 2/2] piglit-run.py: use python2
> 
> piglit-run.py uses python 2 syntax, so use python2 binary.
> 
> File "./piglit-run.py", line 60
>     print USAGE % {'progName': sys.argv[0]}
>               ^
> SyntaxError: invalid syntax
> 
> Signed-off-by: Xavier Chantry <chantry.xavier at gmail.com>
> ---
>  piglit-run.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> Could piglit users check their system for the existence of a python2
> binary or
> link and share the results ?  If just a few distrib miss it, we should
> request
> for its addition.
> 
> diff --git a/piglit-run.py b/piglit-run.py
> index 9f0eca6..9aa703d 100755
> --- a/piglit-run.py
> +++ b/piglit-run.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python
> +#!/usr/bin/env python2
>  #
>  # Permission is hereby granted, free of charge, to any person
>  # obtaining a copy of this software and associated documentation
> --
> 1.7.3.2
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


This isn't going to work on Mac OS X, which doesn't have a python2 binary or python2 symlink.


More information about the Piglit mailing list