<commit_before>python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

# remove driver parts for other architectures
%ifnarch %ix86
rm -rf %{python_sitelib}/selenium/webdriver/firefox/x86
%endif
%ifnarch x86_64
rm -rf %{python_sitelib}/selenium/webdriver/firefox/amd64
%endif

abspath_installed_files=$(readlink -f INSTALLED_FILES)
(
    cd $RPM_BUILD_ROOT
    for i in usr/*/python*/site-packages/* usr/bin/*; do
        if [ -e "$i" ]; then
            sed -i "s@/$i/@DELETE_ME@" "$abspath_installed_files"
            echo "/$i"<commit_msg>Fix install script for python-selenium<commit_after>python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

# remove driver parts for other architectures
%ifnarch %ix86
rm -rf %{buildroot}%{python_sitelib}/selenium/webdriver/firefox/x86
%endif
%ifnarch x86_64
rm -rf %{buildroot}%{python_sitelib}/selenium/webdriver/firefox/amd64
%endif

abspath_installed_files=$(readlink -f INSTALLED_FILES)
(
    cd $RPM_BUILD_ROOT
    for i in usr/*/python*/site-packages/* usr/bin/*; do
        if [ -e "$i" ]; then
            sed -i "s@/$i/@DELETE_ME@" "$abspath_installed_files"
            echo "/$i"
{'fraction_non_alphanumeric': 0.135089209855565, 'fraction_numerical': 0.018691588785046728, 'mean_word_length': 3.8278688524590163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7386426', 'n_tokens_mistral': 463, 'n_tokens_neox': 425, 'n_words': 93}