Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move to meson build system #49

Open
trichter opened this issue Apr 12, 2024 · 4 comments
Open

move to meson build system #49

trichter opened this issue Apr 12, 2024 · 4 comments

Comments

@trichter
Copy link
Collaborator

Occasionally we should move from numpy.distutils to meson. I think telewavesim cannot be installed alongside python3.12 due to setuptools/numpy.distutils conflicts. numpy.distutils is also removed from numpy.

@khannema
Copy link

Hi there,
I have troubles installing telewavesim as I run in the following error, while trying to install it via pip:

Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "~/src/Telewavesim/setup.py", line 3, in
from numpy.distutils.core import setup, Extension
ModuleNotFoundError: No module named 'numpy.distutils'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

As I think this is related to the issue trichter pointed out above I hope someone knows a way to fix this.

@trichter
Copy link
Collaborator Author

trichter commented Oct 23, 2024

As a work-around you can try to install in a conda environment with an old numpy and python version.

The following is working for me:

conda create -n telews -c conda-forge "python=3.10" "numpy<1.22" obspy pytest fortran-compiler
conda activate telews
pip install telewavesim
pytest -v --pyargs telewavesim  # run tests

@khannema
Copy link

Thank you for your quick reply, we did the same here as a workaround and setup an environment with python 3.10.

@paudetseis
Copy link
Owner

On MacOS (x64), the above work-around installation still fails. I have found that the following works, using much earlier versions:

conda create -n telews -c conda-forge "python=3.7" "numpy<1.21" obspy pytest fortran-compiler
conda activate telews
pip install telewavesim

I started a branch scikit that repackages Telewavesim to build using the sciki-build-core back-end, but I am struggling with how to link the LAPACK libraries. Any hint is appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants