@@ -401,6 +401,7 @@ def get_package_data(self):
401401 * _pkg_data_helper ('matplotlib' , 'mpl-data/images' ),
402402 * _pkg_data_helper ('matplotlib' , 'mpl-data/stylelib' ),
403403 * _pkg_data_helper ('matplotlib' , 'backends/web_backend' ),
404+ '*.dll' , # Only actually matters on Windows.
404405 ],
405406 }
406407
@@ -814,35 +815,3 @@ def get_extension(self):
814815 if platform .python_implementation ().lower () == 'pypy' :
815816 ext .extra_compile_args .append ('-DPYPY=1' )
816817 return ext
817-
818-
819- class OptionalPackageData (OptionalPackage ):
820- config_category = "package_data"
821-
822-
823- class Dlls (OptionalPackageData ):
824- """
825- On Windows, this packages any DLL files that can be found in the
826- lib/matplotlib/* directories.
827- """
828- name = "dlls"
829-
830- def check (self ):
831- if sys .platform != 'win32' :
832- raise CheckFailed ("Microsoft Windows only" )
833- return super ().check ()
834-
835- def get_package_data (self ):
836- return {'' : ['*.dll' ]}
837-
838- @classmethod
839- def get_config (cls ):
840- """
841- Look at `setup.cfg` and return one of ["auto", True, False] indicating
842- if the package is at default state ("auto"), forced by the user (True)
843- or opted-out (False).
844- """
845- try :
846- return config .getboolean (cls .config_category , cls .name )
847- except Exception :
848- return False # <-- default
0 commit comments