[pygobject] meson: fix naming/version/path of the .egg-info file
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] meson: fix naming/version/path of the .egg-info file
- Date: Sun, 24 Jun 2018 09:53:45 +0000 (UTC)
commit af1b2e88211f3d4e0a3c542a5a05f3d0bf86bdac
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sun Jun 24 11:48:39 2018 +0200
meson: fix naming/version/path of the .egg-info file
Match what we do with distutils
* Use "PyGObject" as package name (it's not case sensitive, but no need to
diverge there)
* Mark unstable releases as dev releases by adjusting the version number
* Install in the right directory (not the gi package)
meson.build | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 70279b85..877cb046 100644
--- a/meson.build
+++ b/meson.build
@@ -142,10 +142,18 @@ configure_file(input : 'pygobject-@0 pc in'.format(platform_version),
configuration : pkgconf,
install_dir : pkg_install_dir)
+if pygobject_version_minor.is_odd()
+ py_version = '@0@.dev0'.format(pygobject_version)
+else
+ py_version = pygobject_version
+endif
+
+pkginfo_conf = configuration_data()
+pkginfo_conf.set('VERSION', py_version)
configure_file(input : 'PKG-INFO.in',
- output : 'pygobject-@0@-py@1@.egg-info'.format(pygobject_version, python.language_version()),
- configuration : pkgconf,
- install_dir : python.get_install_dir(subdir : 'gi'))
+ output : 'PyGObject-@0@.egg-info'.format(py_version),
+ configuration : pkginfo_conf,
+ install_dir : python.get_install_dir())
subdir('gi')
subdir('pygtkcompat')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]