meson: support for python packaging

This commit is contained in:
Wojtek Porczyk
2020-11-24 18:59:48 +01:00
parent a72662ffb2
commit b95c8fa6bd
4 changed files with 21 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
'''Python support for Graphene'''
__version__ = '@VERSION@'
+12
View File
@@ -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')
+1
View File
@@ -0,0 +1 @@
subdir('graphenelibos')