summary refs log tree commit diff
path: root/pkgs/tools/networking/p2p/bittorrent/builder.sh
blob: 3f30aa5c851f4c0f0c26a78e190ff255defe1936 (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
source $stdenv/setup


# Workaround for:
#  File "...-python-2.4.4/lib/python2.4/posixpath.py", line 62, in join
#    elif path == '' or path.endswith('/'):
# AttributeError: 'NoneType' object has no attribute 'endswith'
export HOME=$TMP


buildPhase() {
    python setup.py build
}


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

    # Create wrappers that set the environment correctly.
    for i in $(cd $out/bin && ls); do
        wrapProgram $out/bin/$i \
            --set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
    done
}


genericBuild