@@ -94,6 +94,7 @@ def run(self):
9494# Add build_dotnet to the build tasks:
9595from distutils .command .build import build as _build
9696from setuptools .command .develop import develop as _develop
97+ from wheel .bdist_wheel import bdist_wheel as _bdist_wheel
9798from setuptools import Distribution
9899import setuptools
99100
@@ -111,13 +112,22 @@ def install_for_development(self):
111112 return super ().install_for_development ()
112113
113114
115+ class bdist_wheel (_bdist_wheel ):
116+ def finalize_options (self ):
117+ # Monkey patch bdist_wheel to think the package is pure even though we
118+ # include DLLs
119+ super ().finalize_options ()
120+ self .root_is_pure = True
121+
122+
114123# Monkey-patch Distribution s.t. it supports the dotnet_libs attribute
115124Distribution .dotnet_libs = None
116125
117126cmdclass = {
118127 "build" : build ,
119128 "build_dotnet" : build_dotnet ,
120129 "develop" : develop ,
130+ "bdist_wheel" : bdist_wheel ,
121131}
122132
123133
@@ -142,9 +152,8 @@ def install_for_development(self):
142152 author = "The Contributors of the Python.NET Project" ,
143153 author_email = "pythonnet@python.org" ,
144154 packages = ["pythonnet" , "pythonnet.find_libpython" ],
145- install_requires = ["pycparser" , " clr_loader" ],
155+ install_requires = ["clr_loader" ],
146156 long_description = long_description ,
147- # data_files=[("{install_platlib}", ["{build_lib}/pythonnet"])],
148157 py_modules = ["clr" ],
149158 dotnet_libs = dotnet_libs ,
150159 classifiers = [
@@ -156,6 +165,7 @@ def install_for_development(self):
156165 "Programming Language :: Python :: 3.6" ,
157166 "Programming Language :: Python :: 3.7" ,
158167 "Programming Language :: Python :: 3.8" ,
168+ "Programming Language :: Python :: 3.9" ,
159169 "Operating System :: Microsoft :: Windows" ,
160170 "Operating System :: POSIX :: Linux" ,
161171 "Operating System :: MacOS :: MacOS X" ,
0 commit comments