• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python bdist_wheel.get_tag函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python util.native函数代码示例发布时间:2022-05-26
下一篇:
Python environment.Env类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap