Skip to content

Commit

Permalink
Add Meson build file
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Dec 8, 2023
1 parent 904f141 commit 98945dc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Meson build file for pymt_topography.
project('pymt_topography', version: '0.2.dev0')

py = import('python').find_installation(pure: false)

# Files get copied to <python directory>/site-packages/<subdir>
install_pkg_srcs = [
meson.project_name() / '__init__.py',
meson.project_name() / 'bmi.py',
]
py.install_sources(
install_pkg_srcs,
subdir: meson.project_name(),
)

install_subdir(
'meta/Topography',
install_dir: py.get_install_dir() / meson.project_name() / 'data',
)

# This is a temporary fix for editable installs.
run_command('cp', '-r', meson.project_name() / 'data', 'build')

0 comments on commit 98945dc

Please sign in to comment.