Skip to content

Added filename placeholder in winbuild URL#8498

Merged
radarhere merged 2 commits intopython-pillow:mainfrom
radarhere:winbuild
Oct 26, 2024
Merged

Added filename placeholder in winbuild URL#8498
radarhere merged 2 commits intopython-pillow:mainfrom
radarhere:winbuild

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Oct 25, 2024

There are several places in winbuild/build_prepare.py where the "filename" is replicated in the "url"

"zlib": {
"url": f"https://zlib.net/zlib{V['ZLIB_DOTLESS']}.zip",
"filename": f"zlib{V['ZLIB_DOTLESS']}.zip",

I wonder if

"zlib": {
    "url": "https://zlib.net/FILENAME",
    "filename": f"zlib{V['ZLIB_DOTLESS']}.zip",

is neater, reducing duplication?

Feel free to reject if others think it isn't simpler.

"libjpeg": {
"url": f"{SF_PROJECTS}/libjpeg-turbo/files/{V['JPEGTURBO']}/"
f"libjpeg-turbo-{V['JPEGTURBO']}.tar.gz/download",
"FILENAME/download",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string probably fits on a single line now.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I've pushed a commit.

@radarhere radarhere merged commit 64eed14 into python-pillow:main Oct 26, 2024
@radarhere radarhere deleted the winbuild branch October 26, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants