diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-06-15 19:28:25 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-08-15 09:36:18 -0400 |
commit | 409aae51d68bb38b2bf0d1f12ef6ce76d8e99655 (patch) | |
tree | 63a4b5522698a68ae59317f368a168a3e9919174 /packaging/createpkg.py | |
parent | ead4ba777785e1fa6a265b6597dc97a68d38f82e (diff) | |
download | meson-409aae51d68bb38b2bf0d1f12ef6ce76d8e99655.zip meson-409aae51d68bb38b2bf0d1f12ef6ce76d8e99655.tar.gz meson-409aae51d68bb38b2bf0d1f12ef6ce76d8e99655.tar.bz2 |
misc formatting lint fixes, drop unneeded f-string
Diffstat (limited to 'packaging/createpkg.py')
-rwxr-xr-x | packaging/createpkg.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packaging/createpkg.py b/packaging/createpkg.py index 391e730..b85845f 100755 --- a/packaging/createpkg.py +++ b/packaging/createpkg.py @@ -34,7 +34,7 @@ class PkgGenerator: self.identifier = 'com.mesonbuild.meson' self.version = coredata.version.replace('dev', '') self.mesonstashdir = os.path.join(self.sharedir, f'meson-{self.version}') - self.pkgname = f'meson.pkg' + self.pkgname = 'meson.pkg' self.productname = f'meson-{self.version}.pkg' self.distribution_file = 'meson-distribution.xml' self.resourcedir = 'packaging/macpages' @@ -51,7 +51,7 @@ class PkgGenerator: for m in get_modules(): pyinst_cmd += ['--hidden-import', m] pyinst_cmd += ['meson.py'] - subprocess.check_call(pyinst_cmd ) + subprocess.check_call(pyinst_cmd) tmpdir = os.path.join(self.pkg_dir, 'meson') shutil.move(tmpdir, self.mesonstashdir) os.makedirs(self.bindir) @@ -64,11 +64,11 @@ class PkgGenerator: def build_package(self): subprocess.check_call(['pkgbuild', - '--root', - self.pkg_dir, - '--identifier', - self.identifier, - self.pkgname]) + '--root', + self.pkg_dir, + '--identifier', + self.identifier, + self.pkgname]) self.generate_distribution() subprocess.check_call(['productbuild', '--distribution', @@ -96,7 +96,7 @@ class PkgGenerator: choice = ET.SubElement(root, 'choice', {'id': self.identifier, 'visible': 'false'}) ET.SubElement(choice, 'pkg-ref', {'id': self.identifier}) ET.SubElement(root, 'pkg-ref', {'id': self.identifier, - 'version': '0',#self.version, + 'version': '0', # self.version, 'onConclusion': 'none'}).text = self.pkgname ET.ElementTree(root).write(self.distribution_file, encoding='utf-8', xml_declaration=True) # ElementTree can not do prettyprinting so do it manually |