diff flatpak/build_manifest.py @ 140:e23e414987d7

flatpak (build_manifest): --no-binary is currently disabled as version parsing doesn't handle yet wheel packages.
author Goffi <goffi@goffi.org>
date Sun, 23 Jun 2019 18:12:01 +0200
parents d36a68e396d5
children 9201caf7b2a8
line wrap: on
line diff
--- a/flatpak/build_manifest.py	Sun Jun 23 17:34:10 2019 +0200
+++ b/flatpak/build_manifest.py	Sun Jun 23 18:12:01 2019 +0200
@@ -130,7 +130,7 @@
         '--deps-dir',
         help="use this directory to build_group python dependencies (it won't be deleted at "
              "the end, useful when you want to re-use it and avoir re-downloading)")
-    build_group.add_argument('--no-binary', help="don't use binary packages")
+    # build_group.add_argument('--no-binary', help="don't use binary packages")
 
     # export group
     export_group.add_argument('-s', '--symlink', choices=['no', 'all', 'cache'],
@@ -148,6 +148,9 @@
     parser.add_argument('version', type=str, help="version of the package to build_group")
 
     args = parser.parse_args()
+    # FIXME: no_binary is currently not managed because version parser doesn't handle
+    #        wheels
+    args.no_binary = True
 
     if 'all' in args.ignore_cache and len(args.ignore_cache) != 1:
         parser.error('"all" cannot be used with step names in --ignore-cache, '
@@ -824,7 +827,7 @@
     tree = etree.parse(template_file, parser)
     root = tree.getroot()
     if args.version == 'dev':
-        print("addind release data for dev version")
+        print(f"addind release data for dev version ({dev_version_rev})")
         releases_elt = root.find('releases')
         if releases_elt is None:
             raise ValueError(
@@ -840,7 +843,6 @@
         text_lines = APPDATA_RELEASE_DEV_TEXT.strip().split('\n')
         for text in text_lines:
             etree.SubElement(description_elt, 'p').text = text
-        print(f"release data added for this version ({dev_version_rev})")
 
     with open(appdata_file, "wb") as f:
         f.write(etree.tostring(root, encoding="utf-8", xml_declaration=True,