Greg Hewgill ([info]ghewgill) wrote,
@ 2009-05-04 23:20:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
pyqver - identify minimum python version
The other day on Stack Overflow, somebody asked a question about whether there was a tool to determine the minimum version of Python required for a given script. Apparently such a thing didn't exist, and I've also had a need for such a tool in the past.

So, in the spirit of having an itch to scratch and doing something about it, I put together pyqver (for PYthon Query VERsion) which attempts to determine the minimum version of Python required to execute a particular script. It's reasonably complete but there are some aspects that are not yet handled (as mentioned in the README file). Feel free to fork and improve it!


(1 comment) - (Post a new comment)


[info]paradox0220
2009-05-04 01:58 pm UTC (link)
That is actually a fantastic idea for just about any code. Even C could benefit. I work with some embedded C compilers that aren't totally compliant. It would be awesome if compilation environments incorporated such a tool and simply stopped after checking dependencies to tell you want needs upgrading.

(Reply to this)


(1 comment) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…