Skip to content

Commit

Permalink
Do not escape PILLOW_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 4, 2022
1 parent 9f6e947 commit 887c1a6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 250 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/lint.yml

This file was deleted.

87 changes: 0 additions & 87 deletions .github/workflows/test-docker.yml

This file was deleted.

114 changes: 0 additions & 114 deletions .github/workflows/test.yml

This file was deleted.

9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,14 +840,7 @@ def build_extensions(self):
if struct.unpack("h", b"\0\1")[0] == 1:
defs.append(("WORDS_BIGENDIAN", None))

if (
sys.platform == "win32"
and sys.version_info < (3, 9)
and not (PLATFORM_PYPY or PLATFORM_MINGW)
):
defs.append(("PILLOW_VERSION", f'"\\"{PILLOW_VERSION}\\""'))
else:
defs.append(("PILLOW_VERSION", f'"{PILLOW_VERSION}"'))
defs.append(("PILLOW_VERSION", f'"{PILLOW_VERSION}"'))

self._update_extension("PIL._imaging", libs, defs)

Expand Down

0 comments on commit 887c1a6

Please sign in to comment.