File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,21 @@ def run(self):
203
203
_install .run (self )
204
204
self .cmake_install ()
205
205
206
+ cmdclass = {
207
+ 'build' : BuildWithCmake ,
208
+ 'build_ext' : BuildExtWithCmake ,
209
+ 'install' : InstallWithCmake ,
210
+ }
211
+
212
+ try :
213
+ from wheel .bdist_wheel import bdist_wheel
214
+ class BdistWheelWithCmake (bdist_wheel ):
215
+ def finalize_options (self ):
216
+ bdist_wheel .finalize_options (self )
217
+ self .root_is_pure = False
218
+ cmdclass ["bdist_wheel" ] = BdistWheelWithCmake
219
+ except ImportError :
220
+ pass
206
221
207
222
long_description = '''
208
223
SymEngine is a standalone fast C++ symbolic manipulation library.
@@ -218,11 +233,7 @@ def run(self):
218
233
219
234
license = "MIT" ,
220
235
url = "https://github.com/symengine/symengine.py" ,
221
- cmdclass = {
222
- 'build' : BuildWithCmake ,
223
- 'build_ext' : BuildExtWithCmake ,
224
- 'install' : InstallWithCmake ,
225
- },
236
+ cmdclass = cmdclass ,
226
237
classifiers = [
227
238
'License :: OSI Approved :: MIT License' ,
228
239
'Operating System :: OS Independent' ,
You can’t perform that action at this time.
0 commit comments