Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop gmpy2 directory & move source files to src/gmpy2/ #474

Closed
wants to merge 1 commit into from

Commits on Mar 25, 2024

  1. Drop gmpy2 directory & move source files to src/gmpy2/

    This uses more modern directory layout (like the ``python-flint`` does,
    for example) and avoids extra pure-python code while doing import.  The
    drawback is that you have to use extra ``--follow`` arguments for some
    ``git`` commands (e.g. ``git log``) to access early history.
    
    With this patch:
    ```
    $ time python -c 'from gmpy2 import *'
    
    real    0m0.065s
    user    0m0.050s
    sys     0m0.015s
    ```
    
    On the master:
    ```
    $ time python -c 'from gmpy2 import *'
    
    real    0m0.120s
    user    0m0.095s
    sys     0m0.024s
    ```
    
    Uses patched delocate from my repo:
    git+https://github.com/skirpichev/delocate.git@fix-lib-sdir
    skirpichev committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    0f499bd View commit details
    Browse the repository at this point in the history