init: raw cpuid/rdtsc access via ctypes
This commit is contained in:
commit
fa82965ab5
15 changed files with 437 additions and 0 deletions
28
setup.py
Normal file
28
setup.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
from setuptools import setup
|
||||
from setuptools.dist import Distribution
|
||||
|
||||
try:
|
||||
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
|
||||
|
||||
class bdist_wheel(_bdist_wheel):
|
||||
def finalize_options(self):
|
||||
_bdist_wheel.finalize_options(self)
|
||||
self.root_is_pure = False
|
||||
|
||||
def get_tag(self):
|
||||
_python, _abi, plat = _bdist_wheel.get_tag(self)
|
||||
return "py3", "none", plat
|
||||
|
||||
except ImportError:
|
||||
bdist_wheel = None
|
||||
|
||||
|
||||
class BinaryDistribution(Distribution):
|
||||
def has_ext_modules(self):
|
||||
return True
|
||||
|
||||
|
||||
setup(
|
||||
distclass=BinaryDistribution,
|
||||
cmdclass={"bdist_wheel": bdist_wheel} if bdist_wheel else {},
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue