Bug 2197

Summary: Add macro for Python ABI version
Product: Sisyphus Reporter: Mikhail Zabaluev <mhz>
Component: rpm-buildAssignee: placeholder <placeholder>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P5 CC: arseny, glebfm, imz, ldv, placeholder, vt
Version: unstable   
Hardware: all   
OS: Linux   

Description Mikhail Zabaluev 2003-02-09 14:34:12 MSK
%__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 \&quot;from distutils import sysconfig; print sysconfig.get_config_var(\'VERSION\')\&quot;
---

---

Comment 1 Dmitry V. Levin 2003-02-10 09:14:40 MSK
1. First statement is wrong.
2. Suggested command doesn\'t work for python21-2.1.3-alt3
Comment 2 Dmitry V. Levin 2003-02-10 09:14:40 MSK
1. First statement is wrong.
2. Suggested command doesn\'t work for python21-2.1.3-alt3