summarylogtreecommitdiffstats
path: root/pycharm-professional_x86_64.install
blob: b410c1288431d9db55da63e961d893c90e84c80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
    echo ":: Building Cython speed-ups" 
    # compile PyDev debugger used by PyCharm to speedup debugging
    python /opt/pycharm-professional/plugins/python/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
    
    # for attach debugger
    pushd /opt/pycharm-professional/plugins/python/helpers/pydev/pydevd_attach_to_process/linux_and_mac
    g++ -m64 -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
    popd
    
    rm -rf /opt/pycharm-professional/plugins/python/helpers/pydev/build
    echo ":: Cython speed-ups done" 
}

post_upgrade() {
    post_install
}

post_remove() {
    rm -rf /opt/pycharm-professional
}