Package Details: pycharm-professional 2024.3-1

Git Clone URL: https://aur.archlinux.org/pycharm-professional.git (read-only, click to copy)
Package Base: pycharm-professional
Description: Python IDE for Professional Developers. Professional Edition
Upstream URL: https://www.jetbrains.com/pycharm/
Keywords: development editor ide jetbrains python
Licenses: custom
Submitter: hippojazz
Maintainer: Xavier (37h4n)
Last Packager: Xavier
Votes: 289
Popularity: 0.97
First Submitted: 2013-09-25 03:56 (UTC)
Last Updated: 2024-11-14 03:02 (UTC)

Dependencies (19)

Required by (0)

Sources (4)

Pinned Comments

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 .. 44 Next › Last »

octdanb commented on 2022-08-30 23:00 (UTC)

@bilthekid

I managed to get it working via

$ yay -S cython $ pip install cython $ yay -S pycharm-professional

Corpswalker commented on 2022-08-12 05:07 (UTC) (edited on 2022-08-12 05:36 (UTC) by Corpswalker)

In case there are still plans to add aarch64 compatibility here are my changes for aarch64 including jbr. Tested in a VM on Mac M1 with parallels.


diff --git a/PKGBUILD b/PKGBUILD
index 928f609..d7894ba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,10 +5,12 @@
 pkgname=pycharm-professional
 pkgver=2022.2
 pkgrel=1
+jbr_ver=17.0.3
+jbr_build=aarch64-b469.37
 pkgdesc="Python IDE for Professional Developers. Professional Edition"
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
 url='https://www.jetbrains.com/pycharm/'
-conflicts=('pycharm' 'pycharm-community-edition')
+conflicts=('pycharm' 'pycharm-community-edition' 'pycharm-community-jre-aarch64')
 provides=('pycharm')
 license=('custom')
 backup=("opt/$pkgname/bin/pycharm64.vmoptions"
@@ -18,10 +20,14 @@ source=("https://download.jetbrains.com/python/$pkgname-$pkgver.tar.gz"
         "pycharm-professional.desktop"
         "charm.desktop"
         "charm")
+source_aarch64=("https://cache-redirector.jetbrains.com/intellij-jbr/jbr-$jbr_ver-linux-$jbr_build.tar.gz"
+                "https://github.com/JetBrains/intellij-community/raw/master/bin/linux/aarch64/fsnotifier")
 sha256sums=('aace8bbd52c0ac17cbcb9ae6b7afcd7f3b7a5475facaaa6b271d47323611d6f5'
             'a75264959b06a45ea0801729bc1688bfbd52da3c5fbf3d5b1ad9267860439291'
             '6996b38a3c2ba1e472838d7046a4c54a27822fd647be9ca590457e8c6a2d50c8'
             'c01a62a9a17a018f645e7301fd98b98dec77e682f1d0cd908b850e8be03830e0')
+sha256sums_aarch64=('737242bdd6795a14897ff97bb0bb8d99e7a1a5878a6d2f942712147b20312320'
+                    'eb3c61973d34f051dcd3a9ae628a6ee37cd2b24a1394673bb28421a6f39dae29')
 makedepends=('python-setuptools' 'cython')
 optdepends=('ipython: For enhanced interactive Python shell inside Pycharm'
             'openssh: For deployment and remote connections'
@@ -34,28 +40,49 @@ optdepends=('ipython: For enhanced interactive Python shell inside Pycharm'
             'python-pytest: For support testing inside Pycharm'
             'python-tox: Python environments for testing tool'
             'jupyter-server: For Jupyter notebooks and apps')
-            
+
 build() {
     # clean up and compile PyDev debugger used by PyCharm to speedup debugging
     find pycharm-${pkgver}/plugins/python/helpers/pydev/ \( -name *.so -o -name *.pyd \) -delete
     sed -i '1s/^/# cython: language_level=3\n/' pycharm-${pkgver}/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_cython.pxd
     python pycharm-${pkgver}/plugins/python/helpers/pydev/setup_cython.py build_ext --inplace --force-cython
-    
+
     # for attach debugger
     pushd pycharm-${pkgver}/plugins/python/helpers/pydev/pydevd_attach_to_process/linux_and_mac
-    g++ -m64 -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
+
+    if [ "${CARCH}" == "aarch64" ]; then
+        g++ -march=armv8-a+crypto -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
+    else
+        g++ -m64 -shared -o ../attach_linux_amd64.so -fPIC -nostartfiles attach.cpp
+    fi
+
     popd

     rm -rf pycharm-${pkgver}/plugins/python/helpers/pydev/build/
     find pycharm-${pkgver}/plugins/python/helpers/pydev/ -name __pycache__ -exec rm -rf {} \;
-    rm -r pycharm-${pkgver}/lib/pty4j-native/linux/{mips64el,ppc64le,aarch64,arm,x86}
+
+    if [ "${CARCH}" == "aarch64" ]; then
+        rm -r pycharm-${pkgver}/lib/pty4j-native/linux/{mips64el,ppc64le,arm,x86,x86-64}
+    else
+        rm -r pycharm-${pkgver}/lib/pty4j-native/linux/{mips64el,ppc64le,aarch64,arm,x86}
+    fi
 }

 package() {
     # licenses
     install -dm 755 "$pkgdir/usr/share/licenses/$pkgname/"
     mv "pycharm-$pkgver/license/"* "$pkgdir/usr/share/licenses/$pkgname/"
-    
+
+    # https://youtrack.jetbrains.com/articles/IDEA-A-48/JetBrains-IDEs-on-AArch64#linux
+    if [ "${CARCH}" == "aarch64" ]; then
+        cd "pycharm-$pkgver"
+        rm -rf jbr/*
+        cp -r ../jbr-$jbr_ver*/* jbr
+        cp ../fsnotifier bin/
+        chmod +x bin/fsnotifier
+        cd -
+    fi
+
     # base
     install -dm 755 "$pkgdir/opt/$pkgname"
     mv "pycharm-$pkgver/"* "$pkgdir/opt/$pkgname/"

Rabid3east commented on 2022-07-06 01:56 (UTC)

My screen doesn't display pycharm correctly. It looks like it's split down the middle with two blank sides. Not sure if anybody else has experienced this but I had the same issue with the community version as well. However in the professional version I was able to activate the trial license.

donny commented on 2022-06-11 07:32 (UTC) (edited on 2022-06-11 07:34 (UTC) by donny)

@bilthekid see https://aur.archlinux.org/packages/pycharm-professional#comment-857099 (EDIT: fixed the link ;) )

bilthekid commented on 2022-06-11 07:28 (UTC)

I get a ModuleNotFoundError: No module named 'Cython' on building the pycharm. The cython is installed of course. Does anyone has this problem or its just me, and any suggestion how to solve?

Xavier commented on 2022-04-14 18:03 (UTC)

@flying-sheep optdepends are optional packages, like a recommendation, but you're right, jupyter-notebook is not the correct package for support Jupyter in Pycharm, fixed.

flying-sheep commented on 2022-04-14 09:43 (UTC) (edited on 2022-04-14 09:44 (UTC) by flying-sheep)

I’m pretty sure it doesn’t depend on jupyter-notebook (not optionally or otherwise). jupyter-notebook is the legacy frontend. PyCharm probably depends on other things. Their docs say to install the jupyter python metapackage: https://www.jetbrains.com/help/pycharm/jupyter-notebook-support.html#get-started

That metapackage installs the kitchen sink by depending on the python packages jupyer-console, ipykernel, qtconsole, notebook, ipywidgets and nbconvert. I’m sure PyCharm actually only needs ipykernel of those, and probably something like jupyter-server or so.

zerophase commented on 2022-03-21 12:04 (UTC)

I disabled ccache for the build, and I get error:

cc1: error: too many filenames given; type ‘cc1 --help’ for usage

Xavier commented on 2022-03-18 05:05 (UTC)

@zerophase not for me, don't build it in any virtualenv active shell or similar