コード例 #1
0
ファイル: setup.py プロジェクト: AndrewAnnex/SpiceyPy
 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
0
 def get_tag(self):
     tag = _bdist_wheel.get_tag(self)
     pypi_compliant_tag = list(tag)
     if 'linux' == pypi_compliant_tag[2][0:5]:
         pypi_compliant_tag[2] = pypi_compliant_tag[2].replace(
             "linux", "manylinux1")
     pypi_compliant_tag = tuple(pypi_compliant_tag)
     return pypi_compliant_tag
コード例 #3
0
ファイル: setup.py プロジェクト: flo-compbio/xlmhg
 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
コード例 #4
0
ファイル: setup.py プロジェクト: choicy3/cobrapy
 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
コード例 #5
0
 def get_tag(self):
     python, abi, plat = bdist_wheel.get_tag(self)
     python, abi = "py3", "none"
     if plat == "linux_x86_64":
         plat = "manylinux1_x86_64"
     elif plat == "linux_i686":
         plat = "manylinux1_i686"
     return python, abi, plat
コード例 #6
0
ファイル: setup.py プロジェクト: dongbo-BUAA-VR/Open3D
 def get_tag(self):
     python, abi, plat = _bdist_wheel.get_tag(self)
     if plat == 'linux_x86_64':
         libc = ctypes.CDLL('libc.so.6')
         libc.gnu_get_libc_version.restype = ctypes.c_char_p
         GLIBC_VER = libc.gnu_get_libc_version().decode('utf8').split(
             '.')
         plat = f'manylinux_{GLIBC_VER[0]}_{GLIBC_VER[1]}_x86_64'
     return python, abi, plat
コード例 #7
0
ファイル: setup.py プロジェクト: FabianWolff/libtcod-debian
 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)
コード例 #8
0
ファイル: setup.py プロジェクト: Corfucinas/py-spy
        def get_tag(self):
            # this set's us up to build generic wheels.
            # note: we're only doing this for windows/linux right now (causes packaging issues
            # with osx)
            if platform.system() == "Darwin":
                return _bdist_wheel.get_tag(self)

            python, abi, plat = _bdist_wheel.get_tag(self)
            cross_compile_target = _get_cross_compile_target()
            if cross_compile_target == "armv7-unknown-linux-musleabihf":
                plat = "manylinux2014_armv7l"
            elif cross_compile_target == "aarch64-unknown-linux-musl":
                plat = "manylinux2014_aarch64"
            elif cross_compile_target == "i686-unknown-linux-musl":
                plat = "manylinux1_i686"
            elif cross_compile_target == "x86_64-unknown-linux-musl":
                plat = "manylinux1_x86_64"

            python, abi = "py2.py3", "none"
            return python, abi, plat
コード例 #9
0
ファイル: setup.py プロジェクト: brianbruggeman/libtcod
        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)
コード例 #10
0
 def get_tag(self):
     python, abi, plat = _bdist_wheel.get_tag(self)
     # uncomment for non-python extensions
     if platform.system() == "Linux":
         abi = "abi3"
         plat = "manylinux2014_x86_64"
     else:
         abi = "none"
     python = "cp37.cp38.cp39"
     print("plat=", plat)
     return python, abi, plat
コード例 #11
0
ファイル: dsocmd.py プロジェクト: mdavidsaver/setuptools_dso
        def get_tag(self):
            impl, abi_tag, plat_name = _bdist_wheel.get_tag(self)
            log.info('Original Wheel Tag: %s, %s, %s' %
                     (impl, abi_tag, plat_name))

            # So far PIP doesn't clear the environment for sandbox builds...
            # allow mangling of platform name.  eg. 'linux_x86_64' -> 'manylinux1_x86_64'
            new_plat_name = os.environ.get('SETUPTOOLS_DSO_PLAT_NAME', '')
            if new_plat_name:
                plat_name = new_plat_name

            return (impl, abi_tag, plat_name)
コード例 #12
0
ファイル: setup.py プロジェクト: miloserdova-l/mrob
 def get_tag(self):
     python, abi, plat = _bdist_wheel.get_tag(self)
     if platform.system() == "Darwin":
         python, abi = 'py3', 'none'
         name = plat[:plat.find("_")]
         for i in range(3):
             plat = plat[plat.find("_") +
                         1:]  # skip name and version of OS
         arch = plat
         version = os.getenv('MACOSX_DEPLOYMENT_TARGET').replace(
             '.', '_')
         plat = name + "_" + version + "_" + arch
     return python, abi, plat
コード例 #13
0
 def get_tag(self):
     _, _, plat = _bdist_wheel.get_tag(self)
     if platform.system() == "Linux":
         # Get the right platform tag by querying the linker version
         glibc_major, glibc_minor = popen("ldd --version | head -1").read().split()[-1].split(".")
         """# See https://github.com/mayeut/pep600_compliance/blob/master/
         pep600_compliance/tools/manylinux-policy.json"""
         if glibc_major == "2" and glibc_minor == "17":
             plat = "manylinux_2_17_x86_64.manylinux2014_x86_64"
         else:  # For manylinux2014 and above, no alias is required
             plat = "manylinux_%s_%s_x86_64" % (glibc_major, glibc_minor)
     tags = next(sys_tags())
     return (tags.interpreter, tags.abi, plat)
コード例 #14
0
 def get_tag(self):
     _, _, plat = bdist_wheel.get_tag(self)
     if system() == 'Linux':
         # Get the right platform tag by querying the linker version
         glibc_major, glibc_minor = os.popen("ldd --version | head -1").read().split()[-1].split(".")
         # OVTF is built against GLIBC 2.17 with ABI-0 for compatibility with TensorFlow wheels
         # See https://github.com/mayeut/pep600_compliance/blob/master/pep600_compliance/tools/manylinux-policy.json
         if glibc_major == "2" and glibc_minor == "17":
             plat = 'manylinux_2_17_x86_64.manylinux2014_x86_64'
         else: # For manylinux2014 and above, no alias is required
             plat = 'manylinux_%s_%s_x86_64'%(glibc_major, glibc_minor)
     tags = next(sys_tags())
     return (tags.interpreter, tags.abi, plat)
コード例 #15
0
 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
コード例 #16
0
 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
コード例 #17
0
        def get_tag(self):
            """Subclass get_tag() to fix the platform tag"""
            tag = bdist_wheel.get_tag(self)

            if sys.platform == 'darwin':
                # Under OS X, bdist_wheel.get_tag() returns a platform tag that contains the min
                # OS X version with which this Python is compatible (e.g. 'macosx_10_5_x86_64' for
                # Anaconda Python). That's appropriate for C/C++ extensions built via the Python
                # build process, but not for PyGamma which is built via a custom build process.
                # PyGamma's min OS X version is determined by a value in the Makefile, so we give
                # the make process responsiblity for writing a file that contains an appropriate
                # platform tag (e.g. 'macosx_10_9_x86_64').
                platform_tag = open('dist_staging/wheel_platform_tag.txt', 'rb').read().strip()
                tag = (tag[0], tag[1], platform_tag)
            # else:
                # Do nothing. On Linux and Windows, bdist_wheel.get_tag() generates an
                # appropriate platform tag.

            return tag
コード例 #18
0
ファイル: setup.py プロジェクト: mindriot101/py-spy
        def get_tag(self):
            # this set's us up to build generic wheels, since we can handle multiple
            # versions of python and have no ABI requirements
            python, abi, plat = _bdist_wheel.get_tag(self)
            cross_compile_target = _get_cross_compile_target()
            if cross_compile_target == "armv7-unknown-linux-musleabihf":
                plat = "manylinux2014_armv7l"
            elif cross_compile_target == "aarch64-unknown-linux-musl":
                plat = "manylinux2014_aarch64"
            elif cross_compile_target == "i686-unknown-linux-musl":
                plat = "manylinux1_i686"
            elif cross_compile_target == "x86_64-unknown-linux-musl":
                plat = "manylinux1_x86_64"
            elif platform.system() == "Darwin" and os.getenv('MACOSX_DEPLOYMENT_TARGET'):
                target = os.environ['MACOSX_DEPLOYMENT_TARGET']
                plat = "macosx_{}_{}".format(target.replace(".", "_"), platform.machine())

            python, abi = "py2.py3", "none"
            return python, abi, plat
コード例 #19
0
ファイル: setup.py プロジェクト: HunterChen/pyzmq
 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)
コード例 #20
0
ファイル: setup.py プロジェクト: Ignat99/pyzmq
        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)
コード例 #21
0
    def get_tag(self):
        # this set's us up to build generic wheels.
        # note: we're only doing this for windows right now (causes packaging issues
        # with osx)
        _, _, plat = _bdist_wheel.get_tag(self)
        # to debug "ERROR: *.whl is not a supported wheel on this platform.":
        # from setuptools.pep425tags import get_supported
        # get_supported()
        python = ".".join(["cp36", "cp37", "cp38", "py36", "py37", "py38"])
        abi = "none"

        if "macosx" in plat:
            plat = f"macosx_{MIN_OSX_VERSION}_x86_64"

        # The binary we build is statically linked & manylinux compatible, so change platform
        # accordingly
        if plat == "linux_x86_64":
            plat = "manylinux1_x86_64"
        elif plat == "linux_i686":
            plat = "manylinux1_i686"

        return python, abi, plat
コード例 #22
0
ファイル: setup.py プロジェクト: acumenix/semgrep
    def get_tag(self):
        # this set's us up to build generic wheels.
        # note: we're only doing this for windows right now (causes packaging issues
        # with osx)
        _, _, plat = bdist_wheel.get_tag(self)
        # to debug "ERROR: *.whl is not a supported wheel on this platform.":
        # from setuptools.pep425tags import get_supported
        # get_supported()
        python = ".".join(["cp36", "cp37", "cp38", "py36", "py37", "py38"])
        abi = "none"

        if "macosx" in plat:
            plat = f"macosx_{MIN_OSX_VERSION}_x86_64"

        # The binary we build is statically linked & manylinux compatible and alpine compatible
        # there is no way to specify works with alpine on pypi so set platform as any.
        # Note that semgrep-core is still incompatible with Windows
        if plat == "linux_x86_64":
            plat = "any"
        elif plat == "linux_i686":
            plat = "manylinux1_i686"

        return python, abi, plat
コード例 #23
0
 def get_tag(self):
     python, abi, plat = bdist_wheel.get_tag(self)
     python, abi = 'py2.py3', 'none'
     return python, abi, plat
コード例 #24
0
ファイル: setup.py プロジェクト: regis456/tqsdk-python
 def get_tag(self):
     # this set's us up to build generic wheels.
     python, abi, plat = _bdist_wheel.get_tag(self)
     # We don't contain any python source
     python, abi = 'py3', 'none'
     return python, abi, plat
コード例 #25
0
 def get_tag(self):
     tag = bdist_wheel.get_tag(self)
     return ("py3", "none") + tag[2:]
コード例 #26
0
 def get_tag(self):
     self.root_is_pure = True
     tag = bdist_wheel.get_tag(self)
     self.root_is_pure = False
     return tag
コード例 #27
0
 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
コード例 #28
0
ファイル: setup.py プロジェクト: raptorz/wechatpy
 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
コード例 #29
0
ファイル: setup.py プロジェクト: sbraz/pymediainfo
 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
コード例 #30
0
 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
コード例 #31
0
ファイル: setup.py プロジェクト: wfvining/pyhelics
 def get_tag(self):
     rv = bdist_wheel.get_tag(self)
     if platform.python_version().startswith("2"):
         return ("py2", "none") + rv[2:]
     else:
         return ("py3", "none") + rv[2:]
コード例 #32
0
    def get_tag(self):
        _, _, plat = bdist_wheel.get_tag(self)
        if system() == 'Linux':
           plat = 'manylinux1_x86_64'

        return ('py2.py3', 'none', plat)
コード例 #33
0
 def get_tag(self):
     pyver, abi, plat = _bdist_wheel.get_tag(self)
     pyver, abi = 'py3', 'none'
     return pyver, abi, plat
コード例 #34
0
ファイル: setup.py プロジェクト: rougier/freetype-py
 def get_tag(self):
     return (
         'py2.py3',
         'none',
     ) + bdist_wheel.get_tag(self)[2:]
コード例 #35
0
ファイル: setup.py プロジェクト: briceburg/dumb-init
 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
コード例 #36
0
ファイル: setup.py プロジェクト: King-Arthur-Pendragon/pandas
 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
コード例 #37
0
 def get_tag(self):
     python, abi, plat = bdist_wheel.get_tag(self)
     python, abi = 'py3', 'none'
     plat = plat.lower().replace('linux', 'manylinux1')
     plat = plat.lower().replace('darwin_x86_64', 'macosx_10_6_intel')
     return python, abi, plat
コード例 #38
0
ファイル: setup.py プロジェクト: afcarl/passacre
 def get_tag(self):
     impl, abi, plat = _bdist_wheel.get_tag(self)
     return 'py2.py3', 'none', plat
コード例 #39
0
 def get_tag(self):
     python, abi, plat = _bdist_wheel.get_tag(self)
     python, abi = "py3", "none"
     return python, abi, plat
コード例 #40
0
ファイル: setup.py プロジェクト: titaofdata/modin
 def get_tag(self):
     _, _, plat = bdist_wheel.get_tag(self)
     py = "py3"
     abi = "none"
     return py, abi, plat
コード例 #41
0
 def get_tag(self):
     rv = bdist_wheel.get_tag(self)
     return (
         'py2.py3',
         'none',
     ) + rv[2:]
コード例 #42
0
ファイル: setup.py プロジェクト: download8866/afdko-chinese
 def get_tag(self):
     return (
         'py3',
         'none',
     ) + bdist_wheel.get_tag(self)[2:]
コード例 #43
0
ファイル: setup.py プロジェクト: viblo/pymunk
 def get_tag(self):
     rv = bdist_wheel.get_tag(self)
     return ('py2.py3', 'none',) + rv[2:]