Skip to content

How to install data #678

Answered by dnicolodi
peekxc asked this question in Q&A
Oct 6, 2024 · 1 comments · 13 replies
Discussion options

You must be logged in to vote

What you need is:

py = import('python').find_installation(pure: false)
install_data(
    'src/my_package/data/foo.npz',
    install_dir: py.get_install_dir() / 'my_package/data',
)

or the equivalent

py = import('python').find_installation()
install_data(
    'src/my_package/data/foo.npz',
    install_dir: py.get_install_dir(pure: false) / 'my_package/data',
)

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@dnicolodi
Comment options

@peekxc
Comment options

@dnicolodi
Comment options

@dnicolodi
Comment options

Answer selected by peekxc
@eli-schwartz
Comment options

@peekxc
Comment options

@peekxc
Comment options

@eli-schwartz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #677 on October 06, 2024 19:27.