Launching different interpreters

Jp Calderone exarkun at intarweb.us
Mon Oct 13 10:29:31 EDT 2003


On Mon, Oct 13, 2003 at 03:27:46PM +0200, Johan Fredrik Ohman wrote:
> Hi, I'd like to use the newest interpreter if available.  I tried a little
> bash scripting, but with no success.
> Is there some easy way to check a list of possible interpreters and path,
> and when found run the script with that program?
> 

  #!/bin/bash, then write a shell script that searches for versions of
Python, execs the most recent one with your Python source.

  Speaking as a use, I'd much rather just be able to specify the Python
version to use at install-time (Perhaps by typing "python<VERSION> setup.py
install").

  Jp





More information about the Python-list mailing list