-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
building: use
shutil.copyfile
when copying files into onedir build
Use `shutil.copyfile` instead of `shutil.copy` / `shutil.copy2` when copying files into onedir build. Preserving original file permissions (and/or metadata) may lead to issues when those are too restrictive (e.g., read-only permissions, or immutable flag on FreeBSD); for example, during application re-build attempt (as the file cannot be removed or overwritten), or when trying to move the application bundle.
- Loading branch information
Showing
4 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
When copying files into ``onedir`` application bundles, use | ||
:func:`shutil.copyfile` instead of :func:`shutil.copy2` to avoid issues | ||
with original permissions/metadata being too restrictive. |