mesonbuild / mesonbuild/meson-python

wrong mapping of "datadir" variable

Open
#517 8 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
180
Forks
93
Avg merge
2d 7h
Merged PRs (30d)
18

Description

Hi meson-python team,

I encountered this issue when working on https://github.com/dipy/dipy/pull/2715.

With the help of @eli-schwartz, we saw that `get_option('datadir')` does not return the `share` folder. `Meson-python` maps "datadir" to /usr instead of /usr/share -- or more generally, to the python prefix instead of python prefix + "/share".

Thank you in advance for the future fix and let me know if my issue is not clear. Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the `get_option('datadir')` behavior described in the issue, using the linked DIPY pull request as context. Trace how meson-python maps `datadir` to the installation prefix; done means it resolves to the prefix plus `/share`, rather than the prefix alone, with coverage for the corrected mapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.