Show More
@@ -22,6 +22,7 b' while [ "$1" ]; do' | |||||
22 | shift |
|
22 | shift | |
23 | PYTHONVER=2.7.16 |
|
23 | PYTHONVER=2.7.16 | |
24 | PYTHONMD5=f1a2ace631068444831d01485466ece0 |
|
24 | PYTHONMD5=f1a2ace631068444831d01485466ece0 | |
|
25 | PYTHONEXE=python | |||
25 | ;; |
|
26 | ;; | |
26 | --rpmbuilddir ) |
|
27 | --rpmbuilddir ) | |
27 | shift |
|
28 | shift |
@@ -2,6 +2,8 b'' | |||||
2 |
|
2 | |||
3 | %define withpython %{nil} |
|
3 | %define withpython %{nil} | |
4 |
|
4 | |||
|
5 | %global pythonexe python2 | |||
|
6 | ||||
5 | %if "%{?withpython}" |
|
7 | %if "%{?withpython}" | |
6 |
|
8 | |||
7 | %global pythonver %{withpython} |
|
9 | %global pythonver %{withpython} | |
@@ -15,7 +17,6 b'' | |||||
15 |
|
17 | |||
16 | %else |
|
18 | %else | |
17 |
|
19 | |||
18 | %global pythonexe python2 |
|
|||
19 | %global pythonver %(%{pythonexe} -c 'import sys;print(".".join(map(str, sys.version_info[:2])))') |
|
20 | %global pythonver %(%{pythonexe} -c 'import sys;print(".".join(map(str, sys.version_info[:2])))') | |
20 |
|
21 | |||
21 | %endif |
|
22 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now