@@ -94,6 +94,7 @@ def run(self):
94
94
# Add build_dotnet to the build tasks:
95
95
from distutils .command .build import build as _build
96
96
from setuptools .command .develop import develop as _develop
97
+ from wheel .bdist_wheel import bdist_wheel as _bdist_wheel
97
98
from setuptools import Distribution
98
99
import setuptools
99
100
@@ -111,13 +112,22 @@ def install_for_development(self):
111
112
return super ().install_for_development ()
112
113
113
114
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
+
114
123
# Monkey-patch Distribution s.t. it supports the dotnet_libs attribute
115
124
Distribution .dotnet_libs = None
116
125
117
126
cmdclass = {
118
127
"build" : build ,
119
128
"build_dotnet" : build_dotnet ,
120
129
"develop" : develop ,
130
+ "bdist_wheel" : bdist_wheel ,
121
131
}
122
132
123
133
@@ -142,9 +152,8 @@ def install_for_development(self):
142
152
author = "The Contributors of the Python.NET Project" ,
143
153
author_email = "pythonnet@python.org" ,
144
154
packages = ["pythonnet" , "pythonnet.find_libpython" ],
145
- install_requires = ["pycparser" , " clr_loader" ],
155
+ install_requires = ["clr_loader" ],
146
156
long_description = long_description ,
147
- # data_files=[("{install_platlib}", ["{build_lib}/pythonnet"])],
148
157
py_modules = ["clr" ],
149
158
dotnet_libs = dotnet_libs ,
150
159
classifiers = [
@@ -156,6 +165,7 @@ def install_for_development(self):
156
165
"Programming Language :: Python :: 3.6" ,
157
166
"Programming Language :: Python :: 3.7" ,
158
167
"Programming Language :: Python :: 3.8" ,
168
+ "Programming Language :: Python :: 3.9" ,
159
169
"Operating System :: Microsoft :: Windows" ,
160
170
"Operating System :: POSIX :: Linux" ,
161
171
"Operating System :: MacOS :: MacOS X" ,
0 commit comments