Bug 2197 - Add macro for Python ABI version
Summary: Add macro for Python ABI version
Status: CLOSED WONTFIX
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build (show other bugs)
Version: unstable
Hardware: all Linux
: P5 enhancement
Assignee: placeholder@altlinux.org
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-09 14:34 MSK by Mikhail Zabaluev
Modified: 2003-08-25 15:18 MSD (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 \"from distutils import sysconfig; print sysconfig.get_config_var(\'VERSION\')\"
---

---

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