Skip to content

Commit

Permalink
epm play: improve pycharm (ALT bug 43613)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitlav committed Sep 13, 2022
1 parent d05db50 commit 23a4bdf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
6 changes: 6 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
На сайт: eepm.ru

как устанавливать
https://losst.ru/ustanovka-wps-office-v-ubuntu-20-04


Сделать поддержку внешних команд?

Пробовать локальный кэш — каталог, откуда брать пакеты для epm play, а не скачивать. Что-то подобное на ecryptmgr. Установка 1С и другого проприетарного.
Expand Down
6 changes: 2 additions & 4 deletions play.d/pycharm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ DESCRIPTION="PyCharm CE — The Python IDE for Professional Developers"

. $(dirname $0)/common.sh

URL=$(epm tool eget -O- "https://data.services.jetbrains.com/products/releases?code=PCC&latest=true&type=release" | epm --inscript tool json -b | grep '"PCC",0,"downloads","linux","link"' | sed -e 's|.*[[:space:]]||')

#URL=https://download.jetbrains.com/python/pycharm-community-2022.2.tar.gz
URL=$(epm tool eget -O- "https://data.services.jetbrains.com/products/releases?code=PCC&latest=true&type=release" | epm --inscript tool json -b | grep '"PCC",0,"downloads","linux","link"' | sed -e 's|.*[[:space:]]||' | sed -e 's|"||g')

# eval for drop quotes
eval epm install $URL
epm install $URL
14 changes: 9 additions & 5 deletions repack.d/pycharm-community.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,21 @@ for i in attach_amd64.dll attach_linux_x86.so attach_linux_amd64.so attach_x86.d
remove_dir $PRODUCTDIR/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/
done

for i in $BUILDROOT$PRODUCTDIR/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_cython_{darwin,win32}* ; do
remove_file $PRODUCTDIR/plugins/python-ce/helpers/pydev/_pydevd_bundle/$(basename $i)
cd $BUILDROOT/ || exit

for i in $PRODUCTDIR/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_cython_{darwin,win32}* ; do
remove_file $i
done

for i in $BUILDROOT$PRODUCTDIR/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/{win32.pyd,win_amd64.pyd,darwin.so} ; do
remove_file $PRODUCTDIR/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/$(basename $i)
for i in $PRODUCTDIR/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/*-{win32.pyd,win_amd64.pyd,darwin.so} ; do
remove_file $i
done

cd $BUILDROOT$PRODUCTDIR/ || exit

epm assure patchelf || exit
for i in jbr/lib/lib*.so ; do
a= patchelf --set-rpath '$ORIGIN/server:$ORIGIN' $BUILDROOT$PRODUCTDIR/$i
a= patchelf --set-rpath '$ORIGIN/server:$ORIGIN' $i
done


Expand Down

0 comments on commit 23a4bdf

Please sign in to comment.