summaryrefslogtreecommitdiffstats
path: root/main.tex
blob: 2c806a821d7ecc3ab09de018a712b2ed6b61660f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
\documentclass[aspectratio=169,british]{beamer}
\usepackage{graphicx}
\usepackage{bookman}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}

\usetheme{opensuse}

\title{Python packaging in openSUSE}
\subtitle{Advantages against other distributions}
\author{Matěj Cepl}
\date{June 2022}
\newcommand{\authortitle}{}
\newcommand{\organization}{SUSE}
\newcommand{\event}{OpenSUSE Conference 2022}

\begin{document}

\frame{\titlepage}

% \begin{frame}
% 
% \begin{tikzpicture}[remember picture,overlay]
%     \node at (5cm,-0.5cm) {\includegraphics[width=9.33cm,height=8cm,keepaspectratio]{package.png}};
% \end{tikzpicture}
% 
% \end{frame}

\begin{frame}
\frametitle{Problems in the Python non-specific packaging}

\begin{itemize}
    \item Multiple interpreters
    \item Complicated commands
    \item Not enough checking
\end{itemize}

\end{frame}

\begin{frame}[fragile]
\frametitle{Multiple interpreters}

\begin{minipage}[t]{.35\textwidth}
\begin{verbatim}
%build
%if %{with python3}
%py3_build
%else
%py2_build
%endif
\end{verbatim}
\end{minipage} %
\hfill %
\pause %
\begin{minipage}[t]{.35\textwidth}
\begin{verbatim}
%build
%python_build
\end{verbatim}
\end{minipage}

\end{frame}

\begin{frame}[fragile]
\frametitle{Complicated commands}

\begin{verbatim}
%check
export PYTHONPATH=%{buildroot}%{python_sitelib} PYTHONDONTWRITEBYTECODE=1
pytest --ignore=build.* -v
\end{verbatim}

And this is still not correct, because it must be done for all
Python versions separately (and those \texttt{--ignore=build*}
must be arranged accordingly).

\pause
\begin{verbatim}
%check
%pytest
\end{verbatim}

\end{frame}

\begin{frame}
    \frametitle{Thank you!}

\end{frame}



\begin{frame}
    \frametitle{Thank you!}
    My email is mcepl@cepl.eu.\vspace{1em}

    \tiny \LaTeX\hspace{0.01em} source of this presentation is availalbe on https://gitlab.com/mcepl/opensuseconf.git.

\end{frame}


\end{document}