Comments (2)
- When python3-base is also installed, it will be expanded to
PreReq: python = 3.6
[because] the expansion of %{py_ver} will check for the python3 interpreter.
I agree, this is undesired behavior. The corresponding line here should be adjusted or removed:
python-rpm-macros/macros/010-common-defs
Line 48 in 1ed0055
(But someone will then have to fight to get an update of python-rpm-macros into Leap 15.4)
from python-rpm-macros.
So I found out that %py_ver is overriden on tumbleweed by /usr/lib/rpm/suse/macros:
%py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND)
Which is not the case for 15.4.
from python-rpm-macros.
Related Issues (20)
- Request to bring %python_compileall to python-rpm-macros HOT 7
- rpmlint is not happy with the current libalternatives handling HOT 2
- Error in libalternatives filelist produced by the %python_alternative macro HOT 1
- export PYTHONPATH and --import-mode=append required for successful python builds HOT 7
- Shouldn’t %primary_interpreter be part of the OBS project rather than in the SPEC file? HOT 7
- Missing {} around parameter in _python_sysconfig_path/var macros HOT 1
- libalternatives handling wrong HOT 3
- Additional flags in scriptlets (like `%pre -f`) HOT 21
- %pyproject_wheel doesn't work without %python_subpackages HOT 2
- Cannot add `--install-options` to %pyproject_install HOT 4
- Add python312 in <flavor> HOT 2
- python_compileall fails to strip the buildroot HOT 16
- Conditionally switch off providing python3-* packages for primary set HOT 16
- rewrite shebangs for "pythons python3" packages HOT 1
- Better support reproducible builds HOT 18
- _pyproject_wheeldir of "build" is way too generic HOT 15
- Add a macro for use of build and installer HOT 12
- pip --build-option is deprecated HOT 3
- fdupes could be run for %doc files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-rpm-macros.