Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%python_exec is broken with multiple python3 flavours #72

Closed
mcepl opened this issue Nov 2, 2020 · 1 comment
Closed

%python_exec is broken with multiple python3 flavours #72

mcepl opened this issue Nov 2, 2020 · 1 comment

Comments

@mcepl
Copy link
Contributor

mcepl commented Nov 2, 2020

So, for example, in python-attr SPEC file we have:

%check 
%python_exec dry_attr.py

which unfortunately expands to:

[   17s] Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.jJGuqZ
[   17s] + umask 022
[   17s] + cd /home/abuild/rpmbuild/BUILD
[   17s] + cd attr-0.3.1
[   17s] ++ '[' -f _current_flavor ']'
[   17s] ++ cat _current_flavor
[   17s] + python_flavor=python38
[   17s] + '[' -z python38 ']'
[   17s] + '[' python38 '!=' python36 ']'
[   17s] + '[' -d build ']'
[   17s] + mv build _build.python38
[   17s] + '[' -d _build.python36 ']'
[   17s] + mv _build.python36 build
[   17s] + echo python36
[   17s] + %__/usr/bin/python3.6 dry_attr.py
@bnavigator
Copy link
Collaborator

#70

@mcepl mcepl closed this as completed Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants