Comments (4)
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.
Ah, you should not use the official release tarball for building with mesonpep517: use the git checkout instead
from xraylib.
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.
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)
- Python memory leak
- New language bindings for Go and Rust HOT 1
- Cross-compilation issue with prdata HOT 3
- Error returned when extrapolating cross section values HOT 5
- static lib for MS VSC++
- TypeError in python bindings using numpy ints HOT 5
- Difference in #shells between xraylib and xmimsimdata.h5 HOT 3
- EdgeEnergy shell is invalid HOT 2
- Issue with python example xrlexample5.py (numpy: int64 vs int) HOT 2
- How to install xraylib package in win10? HOT 3
- Repository for Win installer can't be reached HOT 2
- lvserver packages offline HOT 1
- The photoelectric cross sections of Hydrogen HOT 3
- can't open xraylib-web, and build php failed HOT 1
- Non-zero return despite error for PM3_auger_cascade_kissel and PM4_auger_cascade_kissel HOT 2
- The value of the photoionization cross section of hydrogen at energies above 1 keV HOT 1
- Compile error HOT 9
- How to cross-compile the xraylib code to used on Android HOT 1
- Version in PyPI HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xraylib.