Replies: 2 comments 6 replies
-
|
Another alternative to the scripts is to run something like: fs = import('fs')
foreach file : ['LICENSE.txt', 'NOTICE.txt']
fs.copyfile(
meson.current_source_dir() / '..' / file,
file,
install: true,
install_dir: py.get_install_dir() / 'pyarrow',
)
endforeachalthough I am not sure how to signal that these files should be placed into the |
Beta Was this translation helpful? Give feedback.
-
|
These are two different issues:
For 1 a Meson's dist script is most likely the right approach. For 2 you can declare these files as Note, however, that having an installation from an sdist and an installation from a git checkout producing different results (in this case having or not the license files) is annoying. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to set up meson-python in pyarrow, which is included as part of the larger Arrow monorepo. PyArrow must include both a LICENSE.txt and NOTICE.txt file that exist in the monorepo source, technically outside of the Python package itself.
Including these files into the sdist seems trivial - I can just add a dist_script that looks like:
While that includes the files into the generated sdist, I'm not sure how to install those files into the wheel thereafter.
I'm guessing
meson.add_install_scriptcan help, but is there a more idiomatic way that meson-python can detect these files and place them into the dist-info directory of the wheel?Beta Was this translation helpful? Give feedback.
All reactions