当前位置: 首页>>代码示例>>Python>>正文


Python bdist_wheel.get_tag函数代码示例

本文整理汇总了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
开发者ID:AndrewAnnex,项目名称:SpiceyPy,代码行数:7,代码来源:setup.py

示例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
开发者ID:flo-compbio,项目名称:xlmhg,代码行数:8,代码来源:setup.py

示例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
开发者ID:choicy3,项目名称:cobrapy,代码行数:8,代码来源:setup.py

示例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)
开发者ID:FabianWolff,项目名称:libtcod-debian,代码行数:11,代码来源:setup.py

示例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
开发者ID:git-thinh,项目名称:cefpython,代码行数:16,代码来源:cefpython3.setup.py

示例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)
开发者ID:HunterChen,项目名称:pyzmq,代码行数:21,代码来源:setup.py

示例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
开发者ID:King-Arthur-Pendragon,项目名称:pandas,代码行数:6,代码来源:setup.py

示例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
开发者ID:raptorz,项目名称:wechatpy,代码行数:5,代码来源:setup.py

示例9: get_tag

 def get_tag(self):
     rv = bdist_wheel.get_tag(self)
     return ('py2.py3', 'none',) + rv[2:]
开发者ID:viblo,项目名称:pymunk,代码行数:3,代码来源:setup.py

示例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
开发者ID:briceburg,项目名称:dumb-init,代码行数:5,代码来源:setup.py

示例11: get_tag

 def get_tag(self):
     return (
         'py2.py3',
         'none',
     ) + bdist_wheel.get_tag(self)[2:]
开发者ID:rougier,项目名称:freetype-py,代码行数:5,代码来源:setup.py

示例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
开发者ID:sbraz,项目名称:pymediainfo,代码行数:5,代码来源:setup.py

示例13: get_tag

 def get_tag(self):
     impl, abi, plat = _bdist_wheel.get_tag(self)
     return 'py2.py3', 'none', plat
开发者ID:afcarl,项目名称:passacre,代码行数:3,代码来源:setup.py


注:本文中的wheel.bdist_wheel.bdist_wheel.get_tag函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。