Skip to content

Commit af80a64

Browse files
committed
ENH: make staticbuild configurable via setup.cfg
1 parent c733e40 commit af80a64

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

setup.cfg.template

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@
6161
# modules. The default is determined by fallback.
6262
#
6363
#backend = Agg
64+
65+
[build]
66+
# Build options
67+
# If we should try to use static libraries on Windows
68+
#staticbuild = True

setupext.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ def write_cache(local_fn, data):
165165

166166
if config.has_option('test', 'local_freetype'):
167167
options['local_freetype'] = config.getboolean("test", "local_freetype")
168+
169+
if config.has_option('build', 'staticbuild'):
170+
options['staticbuild'] = config.getboolean("build", "staticbuild")
168171
else:
169172
config = None
170173

0 commit comments

Comments
 (0)