Giter Club home page Giter Club logo

Comments (12)

skirpichev avatar skirpichev commented on September 4, 2024

Documentation was changed a lot in the development version, could you try it?

Unfortunately, #358 is still valid. But you can go to the actions page, get recent successful run of the pip_install_gmpy2 workflow on the master (e.g. this) and download the build artifact. It has html-docs.

Same you can do on any pull request. I think, #383 is related to your issue and I would appreciate your review. Unfortunately, I don't know how pycharm deals with introspection of Python extensions. But if it does it like the Sphinx does - with above PR this issue may be fixed. Here is how docstring look like in docs on that PR:
1

from gmpy.

brubsby avatar brubsby commented on September 4, 2024

The documentation changes look like they would fix my issue if my guesses are correct, but I don't think I can fully test this with just the documentation artifacts alone (unless I'm missing something)

The top of the generated gmpy2.py file in pycharm has the header:

# encoding: utf-8
# module gmpy2.gmpy2
# from C:\Python3\lib\site-packages\gmpy2\gmpy2.cp310-win_amd64.pyd
# by generator 1.147

So I think I'd need to replace the .pyd file, and I imagine that would require me just getting the whole gmpy2 development environment up and running on win 11. Which, if it's well documented, I can attempt. But otherwise I will probably shy away from, barring some help by someone knowledgeable.

from gmpy.

skirpichev avatar skirpichev commented on September 4, 2024

that would require me just getting the whole gmpy2 development environment up and running on win 11. Which, if it's well documented, I can attempt.

Yes, I think so. We don't provide binary wheels for the development version of the gmpy2. IIUIC, latest release wheels were built as documented in mingw64/msys2_build.txt and/or docs/win_build.rst.

I'm trying to automate this process with CI on the win-wheels. I doubt it's working: it seems the delvewheel fails to "fix" the wheel by copying required DLL's (wheel size is smaller than in the latest release, see recent build) and these wheels are working only in the CI environment. But same build instructions as in the workflow file should work for you.

from gmpy.

skirpichev avatar skirpichev commented on September 4, 2024

@casevh, maybe you could do an alpha release with windows wheels? (Since last time I've used M$ Windows 20+ years ago, my progress on the win-wheels branch is slow.) In this way, @brubsby could test if this issue is still valid for the development version.

from gmpy.

casevh avatar casevh commented on September 4, 2024

I just successfully completed a Windows build. I will make a few small updates and do an alpha release.

from gmpy.

skirpichev avatar skirpichev commented on September 4, 2024

@casevh, could you please share instructions, that seems to be working for you? So far we have docs/win_build.rst, mingw64/msys2_build.txt and windows_build.txt.

from gmpy.

casevh avatar casevh commented on September 4, 2024

The (mostly) correct instructions are mingw64/msys2_build.txt. docs/win_build.rst should become the nicely formatted version of msys2_build.txt. I will delete windows_build.txt.

I'll add to the Windows build document as time permits this week.

from gmpy.

skirpichev avatar skirpichev commented on September 4, 2024

I'll add to the Windows build document as time permits this week.

If you would just update msys2_build.txt - this will be great.

from gmpy.

casevh avatar casevh commented on September 4, 2024

I've updated msys2_build.txt and msys2_64_shared.sh.

gmpy2 supports a C-API for supporting third party extensions. There is at least one Windows extension that uses it. See #320.
To support that use, I provide the headers and un-mangled DLLs for GMP, MPFR, and MPC. I want to use a fairly static environment for the official Windows wheels.

from gmpy.

skirpichev avatar skirpichev commented on September 4, 2024

@brubsby, now you are able to test pre-release version. Do you still have this issue with pycharm or it should be closed?

The latest sphinx documentation is still not up to date, but now it includes mentioned above changes in the mpz docstring.

from gmpy.

skirpichev avatar skirpichev commented on September 4, 2024

Ok, I had a time to run this horrible beast. (All this on 2023.2.2, package was installed from CI wheels to workaround #438.)

@casevh, probably we could close this issue. I don't see any warnings on simple file:
1

On another hand, it seems the PyCharm doesn't support multiple function signatures (like e.g sphinx does) and the mpz signature looks funny:
4
But same true for the int() builtin:
2

So, I think we can't do anything here. For some context: https://discuss.python.org/t/signatures-a-call-to-action/23580

from gmpy.

skirpichev avatar skirpichev commented on September 4, 2024

@brubsby, v2.2 was release. Is this issue valid for you?

from gmpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.