[HN Gopher] Cython 3.0 Released
       ___________________________________________________________________
        
       Cython 3.0 Released
        
       Author : ngoldbaum
       Score  : 66 points
       Date   : 2023-07-18 20:26 UTC (2 hours ago)
        
 (HTM) web link (cython.readthedocs.io)
 (TXT) w3m dump (cython.readthedocs.io)
        
       | navels wrote:
       | And chaos ensued. Unable to install aws-cli via pip:
       | https://github.com/aws/aws-cli/issues/8036
        
         | x3n0ph3n3 wrote:
         | Mostly because of PyYAML:
         | https://github.com/yaml/pyyaml/issues/724
         | 
         | I was pretty annoyed to discover that it had a separate build-
         | time dependency on cython that you can't control from your
         | requirements.txt.
        
           | jborean93 wrote:
           | That's unfortunately a pip limitation. You can either disable
           | build isolation so that the build requirements are using your
           | current environment or you can use the PIP_CONSTRAINTS env
           | var which will be passed through to the isolated build
           | invocation allowing you to constrain the build requirements.
           | In this case PyYAML did release a 6.0.1 version which
           | contains an upper bound constraint on Cython.
        
             | x3n0ph3n3 wrote:
             | That's what I ended up doing just for the pyyaml
             | installation.
        
           | stabbles wrote:
           | In Spack [1] we can express all these constraints for the
           | dependency solver, and we also try to always re-cythonize
           | sources [2]. The latter is because bundled cythonized files
           | are sometimes forward incompatible with Python, so it's
           | better to just regenerate those with an up to date cython.
           | 
           | [1] https://github.com/spack/spack/ [2]
           | https://github.com/spack/spack/pull/35995
        
             | x3n0ph3n3 wrote:
             | Oh great, yet _another_ Python package manager.
        
         | gchamonlive wrote:
         | I am reluctant to refer you to aws-cli V2 because it is way
         | more involved to install. No idea why aws moved away from their
         | original distribution method... However, the V2 is going to be
         | the way to go moving forwards :/
        
           | garblegarble wrote:
           | >No idea why aws moved away from their original distribution
           | method
           | 
           | Didn't they move away exactly because of issues like this? As
           | I understand it, aws-cli v2 is still written in Python but
           | ships everything it needs self-contained so it can avoid
           | Python dependency hell[1]
           | 
           | 1: https://www.youtube.com/watch?v=U5y7JI_mHk8#t=3m40
        
       | mturk wrote:
       | A project I work on is currently working through a bunch of
       | performance issues that arose because we had inlined functions in
       | `pxd` files that we did not declare `noexcept nogil`. So, heads
       | up if you see similar regressions! We saw a ridiculous slowdown
       | (7s to 100m, for one suite) because they were inside some awfully
       | tight loops. But the fix was pretty straightforward once we
       | worked it out.
        
       | westurner wrote:
       | From
       | https://cython.readthedocs.io/en/latest/src/changes.html#com... :
       | 
       | > _Since Cython 3.0.0 started development, CPython 3.8-3.11 were
       | released. All these are supported in Cython, including
       | experimental support for the in-development CPython 3.12_
        
       ___________________________________________________________________
       (page generated 2023-07-18 23:00 UTC)