Declare build dependencies.#467
Conversation
|
Hmm. Two sources of unhappiness in the tests: missing fonts, and apparent NumPy binary incompatibilities. Examples of the latter: |
|
So this is nasty. It looks as though the build environment is created without reference to existing packages, so even though there's a NumPy (version 1.15.x) already present in the environment when we do the Replacing the |
|
@mdickinson -- I have found pyproject.toml to be more trouble than it is worth for exactly these sort of issues with dependencies and version incompatibilities. Enough issues to simply not use it at all, in multiple other projects with numpy dependencies. I am not sure it has improved but this was really frustrating for me. |
|
@prabhuramachandran Right, possibly this PR should just be closed. I don't think I understand how this is supposed to be working (at Python packaging level). It's presumably fine in a situation where (a) you're installing everything from PyPI, and (b) you can use the latest versions of everything, but it seems flawed in this sort of case. I don't think our difficulties here are just down to using a mixture of EDM and PyPI; it seems to be a more fundamental problem than that. |
|
@mdickinson -- yes this is not just about edm and pypi. Many projects with numpy dependencies seem to run into this. A useful discussion was here: numpy/numpy#5888 and it does look like there are some possible ways out of this by choosing a lower numpy version. |
|
Closing this. |
This PR declares NumPy and Cython as build dependencies; without this, a
pip installinto an environment that lacks NumPy and/or Cython will fail.