%__python_version gives the full version number of python, which is not always practical. For dependencies, it\'s much more appropriate to use major version number, which can be obtained from: %__python -c \"from distutils import sysconfig; print sysconfig.get_config_var(\'VERSION\')\" --- ---
1. First statement is wrong. 2. Suggested command doesn\'t work for python21-2.1.3-alt3