本文整理汇总了Python中wheel.bdist_wheel.bdist_wheel.get_tag函数的典型用法代码示例。如果您正苦于以下问题:Python get_tag函数的具体用法?Python get_tag怎么用?Python get_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_tag函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_tag
def get_tag(self):
# TODO: since I use six, in future consider replacing first two tags with py2.py3 and none
tag = bdist_wheel.get_tag(self)
repl = 'macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64'
if 'macosx_10' in tag[2]:
tag = (tag[0], tag[1], repl)
return tag
示例2: get_tag
def get_tag(self):
tag = bdist_wheel.get_tag(self)
# print('I\'m running!!! Tag is "%s"' % str(tag))
if platform == 'darwin':
repl = 'macosx_10_6_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64'
if tag[2] in ['macosx_10_6_x86_64', 'macosx_10_7_x86_64']:
tag = (tag[0], tag[1], repl)
return tag
示例3: get_tag
def get_tag(self):
tag = bdist_wheel.get_tag(self)
possible_tags = ("macosx_10_6_intel",
"macosx_10_9_intel",
"macosx_10_9_x86_64")
if tag[2] in possible_tags:
tag = (tag[0], tag[1], ".".join(possible_tags))
return tag
示例4: get_tag
def get_tag(self):
# modified to add the platform tag to pure libraries
# no other changes
impl, abi, plat = orig_bdist_wheel.get_tag(self)
plat_name = self.plat_name
if plat_name is None:
plat_name = get_platform()
plat_name = plat_name.replace('-', '_').replace('.', '_')
return (impl, abi, plat_name)
示例5: get_tag
def get_tag(self):
tag = bdist_wheel.get_tag(self)
platform_tag = sysconfig.get_platform()
platform_tag = platform_tag.replace("-", "_")
if platform.system() == "Linux":
assert "linux" in platform_tag
# "linux-x86_64" replace with "manylinux1_x86_64"
platform_tag = platform_tag.replace("linux", "manylinux1")
elif platform.system() == "Darwin":
# For explanation of Mac platform tags, see:
# http://lepture.com/en/2014/python-on-a-hard-wheel
platform_tag = ("macosx_10_6_intel"
".macosx_10_9_intel.macosx_10_9_x86_64"
".macosx_10_10_intel.macosx_10_10_x86_64")
tag = (tag[0], tag[1], platform_tag)
return tag
示例6: get_tag
def get_tag(self):
import platform
impl, abi, plat = bdist_wheel.get_tag(self)
plat_tag_re = re.compile(r'macosx_(\d+)_(\d+)_(.+)')
m = plat_tag_re.match(plat)
if m:
plat_tags = [plat]
major, minor, arch = m.groups()
arches = [arch]
if arch == 'intel':
arches.append('x86_64')
host_list = re.findall('\d+', platform.mac_ver()[0])
host = (int(host_list[0]), int(host_list[1]))
host_s = '%s_%s' % tuple(host_list[:2])
target = (int(major), int(minor))
if host > target or len(arches) > 1:
for arch in arches:
plat_tags.append('macosx_%s_%s' % (host_s, arch))
plat = '.'.join(sorted(set(plat_tags)))
return (impl, abi, plat)
示例7: get_tag
def get_tag(self):
tag = bdist_wheel.get_tag(self)
repl = 'macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64'
if tag[2] == 'macosx_10_6_intel':
tag = (tag[0], tag[1], repl)
return tag
示例8: get_tag
def get_tag(self):
tag = bdist_wheel.get_tag(self)
if tag[2] == 'macosx_10_6_intel':
tag = (tag[0], tag[1], REPLACE)
return tag
示例9: get_tag
def get_tag(self):
rv = bdist_wheel.get_tag(self)
return ('py2.py3', 'none',) + rv[2:]
示例10: get_tag
def get_tag(self):
python, abi, plat = _bdist_wheel.get_tag(self)
# We don't contain any python source
python, abi = 'py2.py3', 'none'
return python, abi, plat
示例11: get_tag
def get_tag(self):
return (
'py2.py3',
'none',
) + bdist_wheel.get_tag(self)[2:]
示例12: get_tag
def get_tag(self):
python, abi, plat = bdist_wheel.get_tag(self)
# The python code works for any Python version,
# not just the one we are running to build the wheel
return 'py2.py3', 'none', plat
示例13: get_tag
def get_tag(self):
impl, abi, plat = _bdist_wheel.get_tag(self)
return 'py2.py3', 'none', plat