Giter Club home page Giter Club logo

Comments (4)

jcrudy avatar jcrudy commented on August 22, 2024

Thanks for reporting this @Marco-Santoni. From my quick read of pypa/pip#25 I think I understand the problem and how to fix it. I'll close this issue when fixed.

from py-earth.

Marco-Santoni avatar Marco-Santoni commented on August 22, 2024

Thanks, as I need to fix this asap, I've forked the repo and tried to fix the setup.py. However, as I'm not confident with setup.py and Cython, I cannot solve it. Could you please explain how you would solve it, or even commit the fix?

from py-earth.

jcrudy avatar jcrudy commented on August 22, 2024

Well, I think the solution has to do with ilblackdragon's comment near the end of the pypa/pip#25.

It's better to handle egg_info, clean and help commands as special case (at least this is what has been done in scipy (https://github.com/scipy/scipy/blob/master/setup.py) and some other libraries that depend on numpy):

if '--help' in sys.argv[1:] or \
    sys.argv[1] in ('--help-commands', 'egg_info', 'clean', '--version'):
    ...
else:
    import numpy
    ...

The problem has to do with the fact that setup.py imports numpy in order to determine the build path. However, when just trying to get package dependency information on a system without numpy, this import causes an error. You would need to change setup.py so that it imports numpy only if it's actually going to do a build. At least that is my understanding.

I wish I could help more. If you have trouble, post more questions. I just have some projects going on right now and don't really have time to set up a testing environment and experiment with this. I should be able to respond to questions, though. If I get time, I will try to fix this from my end, but I expect that won't happen until next week.

from py-earth.

jcrudy avatar jcrudy commented on August 22, 2024

Fixed by @mehdidc in PR #98.

from py-earth.

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.