Blame env-builder-data/build/script/packet/python3requests-master.sh

369e6c
DEPS="python-3.6.0"
369e6c
369e6c
PK_DIRNAME="requests"
369e6c
PK_URL="https://github.com/kennethreitz/$PK_DIRNAME.git"
f26837
PK_GIT_CHECKOUT="tags/v2.17.3"
99b145
PK_LICENSE_FILES="AUTHORS.rst LICENSE"
369e6c
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh
99b145
99b145
pkbuild() {
99b145
    return 0
99b145
}
369e6c
369e6c
pkinstall() {
369e6c
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1
369e6c
    mkdir -p $INSTALL_PACKET_DIR/lib/python3.6/site-packages
369e6c
    PYTHONHOME=$ENVDEPS_PACKET_DIR \
369e6c
        PYTHONPATH=$INSTALL_PACKET_DIR/lib/python3.6/site-packages:$PYTHONPATH \
369e6c
        python3 \
369e6c
        setup.py \
369e6c
        install \
369e6c
        --prefix=$INSTALL_PACKET_DIR \
369e6c
        || return 1
369e6c
}