Esempio n. 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"])
Esempio n. 2
0
def _version():
    from rez.package_py_utils import exec_python

    return exec_python(
        "_version",
        ["import PySide",
         "print PySide.__version__"])
Esempio n. 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
Esempio n. 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())
Esempio n. 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
Esempio n. 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
Esempio n. 7
0
def _version():
    from rez.package_py_utils import exec_python

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

    return exec_python("version",
                       ["import sys", "print sys.version.split()[0]"])
Esempio n. 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)"])