示例#1
0
def _version():
    from rez.package_py_utils import exec_python

    return exec_python(
        "_version",
        ["from PyQt4.QtCore import QT_VERSION_STR",
         "print QT_VERSION_STR"])
示例#2
0
def _version():
    from rez.package_py_utils import exec_python

    return exec_python(
        "_version",
        ["import PySide",
         "print PySide.__version__"])
示例#3
0
def _python_version():
    from rez.package_py_utils import exec_python

    out = exec_python("_python_version",
                      ["import sys", "print sys.version.split()[0]"],
                      executable="rez-python")

    return out
示例#4
0
def _site_paths():
    from rez.package_py_utils import exec_python
    import ast

    out = exec_python("_site_paths",
                      ["import site", "print site.getsitepackages()"])

    return ast.literal_eval(out.strip())
示例#5
0
def _python_version():
    from rez.package_py_utils import exec_python

    out = exec_python("_python_version", [
        "from __future__ import print_function", "import sys",
        "print(sys.version.split()[0])"
    ],
                      executable="rez-python")

    return out
示例#6
0
def _python_version():
    from rez.package_py_utils import exec_python

    out = exec_python(
        "_python_version",
        ["import sys",
         "print sys.version.split()[0]"],
         executable="rez-python")

    return out
示例#7
0
def _version():
    from rez.package_py_utils import exec_python

    return exec_python("_version",
                       ["import PySide", "print PySide.__version__"])
示例#8
0
def _version():
    from rez.package_py_utils import exec_python

    return exec_python("version",
                       ["import sys", "print sys.version.split()[0]"])
示例#9
0
def _bin_path():
    from rez.package_py_utils import exec_python

    return exec_python(
        "_bin_path",
        ["import sys, os.path", "print os.path.dirname(sys.executable)"])