Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff803c6

Browse files
committed
Minor clean up to keep the line length bit short
1 parent5f9294b commitff803c6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎lib/matplotlib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
importsys
101101
importtempfile
102102
importwarnings
103-
importplatform
104103

105104
importnumpy
106105
frompackaging.versionimportparseasparse_version

‎setupext.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,11 +688,14 @@ def do_custom_build(self, env):
688688

689689
cc=get_ccompiler()
690690
cc.initialize()# Get msbuild in the %PATH% of cc.spawn.
691-
# Freetype 2.10.0+ support static builds and use them if available as they are easier to deploy
692-
msbuild_configuration='Release Static'ifversion.parse(LOCAL_FREETYPE_VERSION)>=version.parse("2.10.0")else'Release'
691+
# Freetype 2.10.0+ support static builds.
692+
ifversion.parse(LOCAL_FREETYPE_VERSION)>=version.parse("2.10.0"):
693+
msbuild_config='Release Static'
694+
else:
695+
msbuild_config='Release'
693696
cc.spawn(["msbuild",str(sln_path),
694697
"/t:Clean;Build",
695-
f"/p:Configuration={msbuild_configuration};Platform={msbuild_platform}"])
698+
f"/p:Configuration={msbuild_config};Platform={msbuild_platform}"])
696699
# Move to the corresponding Unix build path.
697700
(src_path/"objs"/".libs").mkdir()
698701
# Be robust against change of FreeType version.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp