Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@

> - Made the error message when assigning incompatible array types more clear.
> See also https://github.com/bl-sdk/unrealsdk/issues/60 .
>
> - Fixed checking the setting `exe_override` rather than the full `unrealsdk.exe_override`, like
> how it was documented / originally intended.
>
> [3010f486](https://github.com/bl-sdk/unrealsdk/commit/3010f486)

## v1.7: Deathless Mantle

Expand Down
2 changes: 1 addition & 1 deletion libs/pyunrealsdk
12 changes: 12 additions & 0 deletions prepare_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,18 @@ def _zip_dlls(zip_file: ZipFile, install_dir: Path) -> None:

zip_file.write(file, dest)

# We're adding a '._pth' file which is equivalent to the default. For most people, this doesn't
# do anything. However, if someone has a global `PYTHONPATH`/`PYTHONHOME` env var, without this
# file the interpreter would try use them instead.
py_stem = next(install_dir.glob("python*.zip")).stem
zip_file.writestr(
str(ZIP_PLUGINS_FOLDER / (py_stem + "._pth")),
(
f"{py_stem}.zip\n" # dummy comment to force multiline
"DLLs\n"
),
)


def zip_release(
output: Path,
Expand Down