Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0263ad4

Browse files
committed
MNT: Consult config about bundling dlls
Defaults to not (current behavior)
1 parent edd1faf commit 0263ad4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

setupext.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ class OptionalPackageData(OptionalPackage):
21732173

21742174
class Dlls(OptionalPackageData):
21752175
"""
2176-
On Windows, this packages any DLL files that can be found in the
2176+
On Windows, this packages any DLL files that can be found in the
21772177
lib/matplotlib/* directories.
21782178
"""
21792179
name = "dlls"
@@ -2184,3 +2184,15 @@ def check_requirements(self):
21842184

21852185
def get_package_data(self):
21862186
return {'': ['*.dll']}
2187+
2188+
@classmethod
2189+
def get_config(cls):
2190+
"""
2191+
Look at `setup.cfg` and return one of ["auto", True, False] indicating
2192+
if the package is at default state ("auto"), forced by the user (True)
2193+
or opted-out (False).
2194+
"""
2195+
try:
2196+
return config.getboolean(cls.config_category, cls.name)
2197+
except:
2198+
return False # <-- default

0 commit comments

Comments
 (0)