Commit Graph

18 Commits

Author SHA1 Message Date
Dylan Baker e991c4d454 Use SPDX-License-Identifier consistently
This replaces all of the Apache blurbs at the start of each file with an
`# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing
uses to be consistent in capitalization, and to be placed above any
copyright notices.

This removes nearly 3000 lines of boilerplate from the project (only
python files), which no developer cares to look at.

SPDX is in common use, particularly in the Linux kernel, and is the
recommended format for Meson's own `project(license: )` field
2023-12-13 15:19:21 -05:00
Jussi Pakkanen 9bccc96c4e Mangle dashes as needed by WiX. 2023-10-01 20:58:14 +03:00
Jussi Pakkanen b4c9269dab Upgrade MSI builder from WiX3 to WiX 4. 2023-08-01 11:29:47 -07:00
HiPhish 439a61affa Change "can not" to "cannot" throughout project
The word "cannot" expresses inability to do something whereas "can not"
expresses the ability to refrain from doing something.
2023-04-11 17:10:01 +03:00
Eli Schwartz 258cd5d583 packaging: rework how pyinstaller gets its instructions
Make use of pyinstaller hooks by creating a hook that updates how the
`mesonbuild` import functions.

This is more or less the same as passing a bajillion arguments to
pyinstaller's CLI, but allows the logic to be self-contained (and
reusable). It becomes more obvious what parts of the process pertain to
pyinstaller, and which parts pertain to MSI/pkg creation.
2022-03-30 02:06:52 +03:00
Eli Schwartz 37be39bc69 packaging: fix the MSI bundling of distutils sub-packages
Fixes regression in commit 05b5a1e56f.
This added usage of another module in the python module's introspection
of `meson.exe runpython`, but the MSI packaging didn't adapt, causing it
to fail to be detected due to ImportError.

Fixes #9975
2022-02-14 14:45:26 +05:30
Jussi Pakkanen 43c6860a3a Use VS 2022 release version for packaging. 2022-01-09 21:48:06 +02:00
Jussi Pakkanen 4c62dab611
MSI generator fixes 2021-11-17 00:44:29 +02:00
Jussi Pakkanen 4d8548aa06 Fix MSI creation with Python 3.10. 2021-10-24 03:04:13 +03:00
Christian Clauss a5020857f3 Fix typos discovered by codespell 2021-10-10 16:12:25 -04:00
Jussi Pakkanen 793175f665 Delete extra data dirs that cause problems for WiX. 2021-07-21 22:52:38 +03:00
Jussi Pakkanen 5eeddd682f Add a script to create macOS installer packages. 2021-05-18 20:47:05 +03:00
Eli Schwartz 6a0fabc647
mass rewrite of string formatting to use f-strings everywhere
performed by running "pyupgrade --py36-plus" and committing the results
2021-03-04 17:16:11 -05:00
Eli Schwartz 4340bf34fa
various python neatness cleanups
All changes were created by running

"pyupgrade --py3-only --keep-percent-format"

and committing the results. I have not touched string formatting for
now.

- use set literals
- simplify .format() parameter naming
- remove __future__
- remove default "r" mode for open()
- use OSError rather than compatibility aliases
- remove stray parentheses in function(generator) scopes
2021-03-04 17:11:26 -05:00
Jussi Pakkanen 62b744b2c4 Require Windows 10 or newer for the MSI package. [skip ci] 2021-02-28 22:41:41 +02:00
Jussi Pakkanen eacd43d5b5 Add filecmp to list of bundled modules. Closes #8431. [skip ci] 2021-02-28 22:41:41 +02:00
Jussi Pakkanen 5e95f13737 Remove remnants of 32 bit support. [skip ci] 2021-02-28 22:41:41 +02:00
Eli Schwartz df50123c05 createmsi: move to generic packaging directory
We might want to create other dedicated packaging scripts, and put them
all in one directory.
2020-11-27 18:12:08 +02:00