| |
@@ -62,3 +62,12 @@
|
| |
print("\\n" .. dirname .. "__pycache__/" .. modulename .. ".cpython-3" .. pyminor .. "{,.opt-?}.pyc")
|
| |
end
|
| |
}
|
| |
+
|
| |
+ # This is intended for Python 3 only, hence also no Python version in the name.
|
| |
+ %__pytest /usr/bin/pytest
|
| |
+ %pytest %{expand:\\\
|
| |
+ CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\
|
| |
+ PATH="%{buildroot}%{_bindir}:$PATH"\\\
|
| |
+ PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}"\\\
|
| |
+ PYTHONDONTWRITEBYTECODE=1\\\
|
| |
+ %__pytest}
|
| |
See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/XLPDSH362PJKMJCAYOXNJNV53Y66EF6B/