Ticket #38 (closed Defect: fixed)

Opened 1 year ago

Last modified 2 months ago

Python skeleton doesn't locate all installed versions

Reported by: isak Assigned to: taj
Priority: Medium Milestone: 1.3
Component: main Version: 1.2.3
Severity: Minor Keywords:
Cc:

Description

The current python skeleton only checks the 'python' executable for version information. This means that even if pythonX.Y is parallel installed, it won't be identified.

Attachments

skeleton.1 (1.1 kB) - added by Jan-Nik on 08/04/08 16:38:06.
Okay here's an updated skeleton. I have tested it, but I'm not sure if everything is right.

Change History

08/02/08 08:07:11 changed by Jan-Nik

Is this really an issue? If my script needs 2.5 and "python" links to 2.4 and python2.5 is also installed, my script will use the "python" executable anyway, won't it? (because of #!/usr/bin/env python)

08/02/08 11:31:52 changed by isak

It depends on the shebang line I guess.. may be that the developer did #!/usr/bin/env python2.5

In any case, I think it should report all available versions. Which one is default is a a later problem. :)

An idea would be to also add an argument to the skeleton to retrieve the default version of the system.

08/04/08 16:38:06 changed by Jan-Nik

  • attachment skeleton.1 added.

Okay here's an updated skeleton. I have tested it, but I'm not sure if everything is right.

08/17/08 11:05:43 changed by Jan-Nik

  • status changed from new to closed.
  • resolution set to fixed.

I committed the new skeleton in r2495