<commit_before>. $stdenv/setup
. $makeWrapper

buildPhase=buildPhase
buildPhase() {
    python setup.py build
}

installPhase=installPhase
installPhase() {
    python setup.py install --prefix=$out

    # Create wrappers that set the environment correctly.
    for i in $(cd $out/bin && ls); do
        # Note: the GUI apps except to be in a directory called `bin',
        # so don't move them. 
        mv $out/bin/$i $out/bin/.orig-$i
        makeWrapper $out/bin/.orig-$i $out/bin/$i \
            --set PYTHONPATH "$out/lib/python2.3/site-packages:$pygtk/lib/python2.3/site-packages/gtk-2.0"
    done
}

genericBuild<commit_msg>* Use python 2.4.<commit_after>. $stdenv/setup
. $makeWrapper

buildPhase=buildPhase
buildPhase() {
    python setup.py build
}

installPhase=installPhase
installPhase() {
    python setup.py install --prefix=$out

    # Create wrappers that set the environment correctly.
    for i in $(cd $out/bin && ls); do
        # Note: the GUI apps except to be in a directory called `bin',
        # so don't move them. 
        mv $out/bin/$i $out/bin/.orig-$i
        makeWrapper $out/bin/.orig-$i $out/bin/$i \
            --set PYTHONPATH "$out/lib/python2.4/site-packages:$pygtk/lib/python2.4/site-packages/gtk-2.0"
    done
}

genericBuild
{'fraction_non_alphanumeric': 0.13307086614173227, 'fraction_numerical': 0.011023622047244094, 'mean_word_length': 2.6522988505747125, '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': '6191447', 'n_tokens_mistral': 435, 'n_tokens_neox': 415, 'n_words': 112}