Skip to content

Commit 830268c

Browse files
Pani122copybara-github
authored andcommitted
Mark xprof plugin as a non-pure Python distribution.
PiperOrigin-RevId: 898838516
1 parent 0b68c26 commit 830268c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

plugin/setup.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121

2222
from xprof import version
2323

24+
25+
class BinaryDistribution(setuptools.Distribution):
26+
"""This class is needed in order to create OS specific wheels."""
27+
28+
def has_ext_modules(self):
29+
return True
30+
31+
def is_pure(self):
32+
return False
33+
2434
try:
2535
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel # pylint: disable=g-import-not-at-top # pytype: disable=import-error
2636

@@ -93,6 +103,7 @@ def get_readme():
93103
'xprof = xprof.server:main',
94104
],
95105
},
106+
distclass=BinaryDistribution,
96107
cmdclass=cmdclass,
97108
python_requires='>= 3.10',
98109
install_requires=REQUIRED_PACKAGES,

0 commit comments

Comments
 (0)