Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = pure
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
def get_tag(self):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
def finalize_options(self):
# this is a universal, but platform-specific package; a combination
# that wheel does not recognize, thus simply fool it
from distutils.util import get_platform
self.plat_name = get_platform()
_bdist_wheel.finalize_options(self)
self.root_is_pure = True
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
def finalize_options(self):
bdist_wheel.finalize_options(self)
self.root_is_pure = False
cmdclass["bdist_wheel"] = BdistWheelWithCmake
def finalize_options(self):
# Do a bit of monkey-patching to let bdist_wheel know that there
# really are extension modules in this build, even though they are
# not built here.
def _has_ext_modules(self):
return True
from setuptools.dist import Distribution
#Distribution.is_pure = _is_pure
Distribution.has_ext_modules = _has_ext_modules
orig_bdist_wheel.finalize_options(self)
def finalize_options(self):
_bdist_wheel.finalize_options(self)
# Mark us as not a pure python package (we have platform specific C/C++ code)
self.root_is_pure = False
def finalize_options(self):
_bdist_wheel.finalize_options(self)
# Mark us as not a pure python package (we have platform specific ctpse lib)
if self.plat_name != "any":
self.root_is_pure = False
plat_name = (self.plat_name or get_platform()).replace('-', '_').replace('.', '_')
if plat_name == "linux_x86_64" or plat_name == "manylinux1_x86_64":
self.distribution.package_data[""] = ["ctpse/LinuxDataCollect64.so"]
elif plat_name == "win32":
self.distribution.package_data[""] = ["ctpse/WinDataCollect32.dll"]
elif plat_name == "win_amd64":
self.distribution.package_data[""] = ["ctpse/WinDataCollect64.dll"]
def finalize_options(self):
bdist_wheel.finalize_options(self)
self.root_is_pure = False