Merge pull request #181600 from Olliroxx/pycharm-debug-cython-speedup

authored by Sandro and committed by GitHub cd4653d0 4fc6705e

+12 -1
+12 -1
pkgs/applications/editors/jetbrains/default.nix
··· 166 }; 167 }); 168 169 - buildPycharm = { pname, version, src, license, description, wmClass, product, ... }: 170 (mkJetBrainsProduct { 171 inherit pname version src wmClass jdk product; 172 productShort = "PyCharm"; ··· 189 ''; 190 maintainers = with maintainers; [ ]; 191 }; 192 }); 193 194 buildRider = { pname, version, src, license, description, wmClass, ... }:
··· 166 }; 167 }); 168 169 + buildPycharm = { pname, version, src, license, description, wmClass, product, cythonSpeedup ? stdenv.isLinux, ... }: 170 (mkJetBrainsProduct { 171 inherit pname version src wmClass jdk product; 172 productShort = "PyCharm"; ··· 189 ''; 190 maintainers = with maintainers; [ ]; 191 }; 192 + }).overrideAttrs (finalAttrs: previousAttrs: optionalAttrs cythonSpeedup { 193 + buildInputs = with python3.pkgs; [ python3 setuptools ]; 194 + preInstall = '' 195 + echo "compiling cython debug speedups" 196 + if [[ -d plugins/python-ce ]]; then 197 + ${python3.interpreter} plugins/python-ce/helpers/pydev/setup_cython.py build_ext --inplace 198 + else 199 + ${python3.interpreter} plugins/python/helpers/pydev/setup_cython.py build_ext --inplace 200 + fi 201 + ''; 202 + # See https://www.jetbrains.com/help/pycharm/2022.1/cython-speedups.html 203 }); 204 205 buildRider = { pname, version, src, license, description, wmClass, ... }: