Bug 2197 - Add macro for Python ABI version
: Add macro for Python ABI version
Status: CLOSED WONTFIX
: Sisyphus
(All bugs in Sisyphus/rpm-build)
: unstable
: all Linux
: P5 enhancement
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2003-02-09 14:34 by
Modified: 2003-08-25 15:18 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-02-09 14:34:12
%__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\')\"
---

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