mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 13:51:28 +00:00
meson: support for python packaging
This commit is contained in:
@@ -8,4 +8,9 @@ prefix = get_option('prefix')
|
||||
pkglibexecdir = get_option('libexecdir') / meson.project_name()
|
||||
pkgdatadir = get_option('datadir') / meson.project_name()
|
||||
|
||||
python3 = import('python').find_installation('python3', modules: [
|
||||
'google.protobuf',
|
||||
])
|
||||
|
||||
subdir('Runtime')
|
||||
subdir('python')
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
'''Python support for Graphene'''
|
||||
|
||||
__version__ = '@VERSION@'
|
||||
@@ -0,0 +1,12 @@
|
||||
conf = configuration_data()
|
||||
conf.set('VERSION', meson.project_version())
|
||||
|
||||
init_py = configure_file(
|
||||
input: '__init__.py',
|
||||
output: '__init__.py',
|
||||
configuration: conf,
|
||||
)
|
||||
|
||||
python3.install_sources([
|
||||
init_py,
|
||||
], subdir: 'graphenelibos')
|
||||
@@ -0,0 +1 @@
|
||||
subdir('graphenelibos')
|
||||
Reference in New Issue
Block a user