[MDEV-14020] Choose specific python version Created: 2017-10-06 Updated: 2017-10-16 Resolved: 2017-10-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Tests |
| Affects Version/s: | 10.0, 10.1, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Michal Schorm | Assignee: | Sergei Golubchik |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Fedora RPMLint warnings:
|
| Comments |
| Comment by Sergei Golubchik [ 2017-10-06 ] | |||
|
I've read https://pagure.io/packaging-committee/issue/698, the main idea seems to be
which makes perfect sense. But I didn't find what to do when a package does not depend on where /usr/bin/python points, because it works equally well with either python2 or python3. | |||
| Comment by Sergei Golubchik [ 2017-10-06 ] | |||
|
and
is not allowed either. Well, there's always
and variations of it. | |||
| Comment by Michal Schorm [ 2017-10-07 ] | |||
|
Sergei wrote: That's a good question, I'll found out. — I really won't start with anything like:
It is meant to call thy python interpreter properly, not to irritate developers with workarounds. I'll see what I'll find. | |||
| Comment by Michal Schorm [ 2017-10-07 ] | |||
|
I'm back with the answer! For Fedora, following apply: "If the executables provide the same functionality independent of whether they are run on top of Python 2 or Python 3, then only the Python 3 version of the executable should be packaged." https://fedoraproject.org/wiki/User:Churchyard/Packaging:Python — EDIT: Thanks | |||
| Comment by Michal Schorm [ 2017-10-07 ] | |||
|
I pushed fix in Fedora mariadb package. A simple 'sed' command, that adds the version, when package prepares to be built. | |||
| Comment by Sergei Golubchik [ 2017-10-08 ] | |||
|
Better exclude these files altogether, don't package them. They aren't used at all — not by users, not by us. Just something that upstream (Tokutek, may be Percona too) used to use to generate test files, but test files are installed, so *.py files are absolutely never needed. Why would they introduce an additional python3 dependency... | |||
| Comment by Michal Schorm [ 2017-10-16 ] | |||
|
I updated the solution and removed those files. |