Giter VIP home page Giter VIP logo

Comments (24)

bebound avatar bebound commented on August 15, 2024 1

gmpy2 depend on these computation library, so these library need to be installed when python tries to compile and install the package.

wheel should be able so solve this problem. https://github.com/pypa/manylinux. Maybe we can provide the wheel format package.

from simhash.

bebound avatar bebound commented on August 15, 2024 1

from simhash.

1e0ng avatar 1e0ng commented on August 15, 2024

@bebound Could you help take a look?

from simhash.

bebound avatar bebound commented on August 15, 2024

I'm using macOS, and I have no issue installing gmpy2
Some said it can be installed following these steps, can you check this please? @ajdapretnar

brew install gmp
brew install mpfr
brew install libmpc
pip install gmpy2

from simhash.

ajdapretnar avatar ajdapretnar commented on August 15, 2024

Perhaps, but in our project we can't be brew-installing additional dependencies on users' systems. ๐Ÿ˜ž It's only pip and/or conda we can use. I am on High Sierra 10.13.6. I'll ask my colleagues to try the same and see if they experience the same problem.

from simhash.

ajdapretnar avatar ajdapretnar commented on August 15, 2024

I have asked them and those that don't have many build utilities installed weren't able to install it. Those that do - no problem. I think a solution would be to provide a Mac build.

from simhash.

bebound avatar bebound commented on August 15, 2024

Which python are you using? I'm trying to build a wheel, can you help test whether it works?

from simhash.

1e0ng avatar 1e0ng commented on August 15, 2024

I just now uploaded wheel packages for the most recent version 1.10.1 https://pypi.org/project/simhash/1.10.1/#files
Can you try if it works? @ajdapretnar Thanks.

from simhash.

ajdapretnar avatar ajdapretnar commented on August 15, 2024

I am using Py3.8 and Py3.6. I've tried it and it doesn't work. ๐Ÿ˜ž I appreciate your effort!

from simhash.

bebound avatar bebound commented on August 15, 2024

Seems we can only pre-compile this project's C dependencies with wheel.

gmpy2 only provides wheel for windows, and Conda provide gmpy2 package.
pip user has to install these package manually:

apt-get install libgmp-dev
apt-get install libmpfr-dev
apt-get install libmpc-dev

aleaxit/gmpy#227

from simhash.

bebound avatar bebound commented on August 15, 2024

I built a gmpy2 wheel, can you check if this works?
Change the suffix from zip to whl, and python3.6 -m pip install gmpy2-2.1.0b5-cp36-cp36m-manylinux2014_x86_64.whl.

gmpy2-2.1.0b5-cp36-cp36m-manylinux2014_x86_64.zip

from simhash.

ajdapretnar avatar ajdapretnar commented on August 15, 2024

I tried, but this seems like a Linux wheel and I am on OSX. Anyhow, it reports wheel not supported on this platform.

from simhash.

bebound avatar bebound commented on August 15, 2024

@ajdapretnar How about this one?

gmpy2-2.1.0b5-cp36-cp36m-macosx_10_9_x86_64.zip

gmpy2-2.1.0b5-cp38-cp38-macosx_10_9_x86_64.zip

from simhash.

1e0ng avatar 1e0ng commented on August 15, 2024

@bebound I'll revert the change of GMP first. Let's find a way to resolve this thoroughly later.

from simhash.

ajdapretnar avatar ajdapretnar commented on August 15, 2024

Yes, it works. ๐Ÿ™Œ

from simhash.

bebound avatar bebound commented on August 15, 2024

from simhash.

1e0ng avatar 1e0ng commented on August 15, 2024

Hi @bebound I see your pull request has been merged, so just curious, any plan on this? ๐Ÿ˜„

from simhash.

bebound avatar bebound commented on August 15, 2024

The wheels can be found here: https://github.com/aleaxit/gmpy/actions/runs/97828599, but this has not been uploaded to pypi.

PS: It seems the maintainer has trouble with windows pip install.

from simhash.

slel avatar slel commented on August 15, 2024

in our project we can't be brew-installing additional dependencies
on users' systems. It's only pip and/or conda we can use.

One can conda install gmpy2 via the conda-forge channel.

from simhash.

bebound avatar bebound commented on August 15, 2024

gmpy has wheels on pypi now, would you like to use gmpy2 now? @1e0ng

from simhash.

1e0ng avatar 1e0ng commented on August 15, 2024

Sure, @bebound would you like to create a pull request?

from simhash.

bebound avatar bebound commented on August 15, 2024

Okay.

from simhash.

bebound avatar bebound commented on August 15, 2024

I found there is no wheels for MacBook with Apple Silicon. I'll make the wheel first and create PR later.

from simhash.

bebound avatar bebound commented on August 15, 2024

I've create #67

from simhash.

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.