Re: Proposed Modules, My Take



Murray Cumming wrote:

On Wed, 2005-01-19 at 21:14 +0000, Mark McLoughlin wrote:
You want me to put
 #!/usr/bin/python2.3

	in my scripts rather than

 #!/usr/bin/env python

No, I think you are meant to do
#!/usr/bin/env python2.3
though I'm not quite sure what that does.
About the only time you'd use a versioned python executable name is if your program actually depends on that version of Python.

This might be the case if your application includes a C extension, and you want to make sure you invoke the version of Python that the extension was compiled against (ie. you'd write out the #! line at install time to match how the app was built).

If you don't have a dependency like this, using a versioned executable name will just cause unnecessary incompatibilities.

James.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]