You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm trying to install pmesh via pip install pmesh but I keep getting an error with cython.
It seems that you first need to have cython installed to be able to run line 46 of the setup, and also numpy to run line 3.
Is there a way to avoid using cython and numpy in the setup stage? I'm developing a package that will probably use pmesh as a dependency so numpy and cython won't be previously installed.
Thank you!!
@mchalela You can add a pyproject.toml file with [build-system] requires specifying dependencies which need to be present beforesetup.py is run, cf. PEP 518. Using this you can ensure numpy and cython is installed before any other dependencies, thus fixing the problem. Note that this only handles the install dependencies when using pip, running python3 setup.py install will still fail.
Alternatively, open a pull request doing exactly this in pmesh and fix the problem further upstream, so to say.
Hello! I'm trying to install pmesh via pip install pmesh but I keep getting an error with cython.
It seems that you first need to have cython installed to be able to run line 46 of the setup, and also numpy to run line 3.
Is there a way to avoid using cython and numpy in the setup stage? I'm developing a package that will probably use pmesh as a dependency so numpy and cython won't be previously installed.
Thank you!!
https://github.com/rainwoodman/pmesh/blob/5c3a2263f297891923a16674029a2b01e2188f8c/setup.py#L3
https://github.com/rainwoodman/pmesh/blob/5c3a2263f297891923a16674029a2b01e2188f8c/setup.py#L46-L59
The text was updated successfully, but these errors were encountered: