[gstreamer-bugs] [Bug 584633] New: gst-python uses "#!/usr/bin/env python"

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jun 2 10:01:42 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=584633

  GStreamer | gst-python | Ver: git
           Summary: gst-python uses "#!/usr/bin/env python"
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-python
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: brian.cameron at sun.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: 2.25/2.26
   GNOME milestone: Unspecified


Many files in gst-python uses "#!/usr/bin/env python".  However, this causes
problems on Solaris because we build the gst-python module for both Python 2.4
and Python 2.6, and /usr/bin/python is a symlink to Python 2.4

We would prefer if our Python 2.6 packages did not depend on Python 2.4, so to
fix this we have to hack the files installed with the Python 2.6 packages to
specify "#!/usr/bin/python2.6" directly.

It would be nicer if gst-python could use some mechanism to specify the actual
version of Python being used in the scripts instead of using "#!/usr/bin/env
python".

There are 25 files in gst-python which have this issue.  Attached is the patch
we are currently using with our gst-python 2.6 packages to hack the strings to
point to the right version of Python.

I suppose this could be better addressed by changing all these files to ".in"
files and generating them with the right string at configure time.  Though I am
not sure if this is the best approach, so I wanted to get feedback from the
maintainers.  Thanks.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=584633.




More information about the Gstreamer-bugs mailing list