Closed igtrnt closed 2 months ago
Hi, @igtrnt – PyWavelets uses Meson as its build system when building from sources, which recommends the use of the --no-build-isolation
flag when performing an editable installation with -e
.
With this flag, you will have to pre-install ninja
, Cython, and other build-time dependencies before the invocation of the editable installation command. You may obtain a distribution of ninja
with your system-level package manager on Linux or through popular tools like Homebrew on macOS. Though it is not preferred as much as a system-level installation, you may also get a ninja
distribution from PyPI/pip
.
Thanks for explaining @agriyakhetarpal. Indeed, --no-build-isolation
will fix the problem here. See https://mesonbuild.com/meson-python/how-to-guides/editable-installs.html for more details on why.
If I install PyWavelets with:
I am getting the error below when I
import pywt
in my code:If I do not use
-e
option inpip install
, the error goes away.