Git Product home page Git Product logo

Comments (4)

tschoonj avatar tschoonj commented on July 2, 2024

Hi Manolo,

I am doing fine and hope that the same goes for you.

To get the shared libraries into the right folder, try invoking meson as:

meson setup builddir --buildtype=release --prefix=/users/srio/miniconda3 --libdir=lib

I have no trouble building wheels, using the included pyproject.toml:

$ python -m pip wheel .
Processing /Users/schoon/github/xraylib
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: xraylib
  Building wheel for xraylib (pyproject.toml) ... done
  Created wheel for xraylib: filename=xraylib-4.1.2-cp38-cp38-macosx_10_9_x86_64.whl size=16376814 sha256=2e18894a34a319c70f66920acd0517435d7748c7697b722df40df85510e65270
  Stored in directory: /private/var/folders/jl/d923r8796731jz89cqsytvkc0000gn/T/pip-ephem-wheel-cache-bw8cntm8/wheels/45/9e/eb/a271079890e68de9ec730dad2f6168c2018e0c42a587b93470
Successfully built xraylib

$ python -m pip install xraylib-4.1.2-cp38-cp38-macosx_10_9_x86_64.whl 

This works on Linux and macOS. I have produced a patch for mesonpep517 to add support for Windows, but the project seems to be unmaintained.

from xraylib.

tschoonj avatar tschoonj commented on July 2, 2024

Ah, you should not use the official release tarball for building with mesonpep517: use the git checkout instead

from xraylib.

srio avatar srio commented on July 2, 2024

Thanks a lot Tom. It works beautifully! It is great, this is very helpful!

For my own memorandum, I summarize the process:

git clone https://github.com/tschoonj/xraylib
cd xraylib
git checkout mesonpep517
python -m pip wheel .
python -m pip install xraylib-4.1.1-cp37-cp37m-linux_x86_64.whl

from xraylib.

eli-schwartz avatar eli-schwartz commented on July 2, 2024

Meson recently added a builtin option: -Dpython.install_env=auto -- the default, behavior-preserving value is "prefix" which plays nicely with a linux distro derived python, but not a custom miniconda prefix.

Specifically, lib/x86_64-linux-gnu seems like a misdetected "Debian" install layout mode.

from xraylib.

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.