コード例 #1
0
ファイル: __init__.py プロジェクト: EvertonSilva/pythonz
def install_pythonz():
    PythonzInstaller.install(INSTALLER_ROOT)
    # for bash
    shrc = yourshrc = "bashrc"
    logger.log("""
Well-done! Congratulations!

The pythonz is installed as:

  %(ROOT)s

Please add the following line to the end of your ~/.%(yourshrc)s

  [[ -s %(PATH_ETC)s/%(shrc)s ]] && source %(PATH_ETC)s/%(shrc)s

After that, exit this shell, start a new one, and install some fresh
pythons:

  pythonz install 2.7.2
  pythonz install 3.2

For further instructions, run:

  pythonz help

The default help messages will popup and tell you what to do!

Enjoy pythonz at %(ROOT)s!!
""" % {'ROOT': ROOT, 'yourshrc': yourshrc, 'shrc': shrc, 'PATH_ETC': PATH_ETC.replace(os.getenv('HOME'), '$HOME')})
コード例 #2
0
ファイル: __init__.py プロジェクト: jgarro2/todolist
def install_pythonz():
    PythonzInstaller.install(INSTALLER_ROOT)
    # for bash
    shrc = yourshrc = "bashrc"
    logger.log(
        """
Well-done! Congratulations!

The pythonz is installed as:

  %(ROOT)s

Please add the following line to the end of your ~/.%(yourshrc)s

  [[ -s %(PATH_ETC)s/%(shrc)s ]] && source %(PATH_ETC)s/%(shrc)s

After that, exit this shell, start a new one, and install some fresh
pythons:

  pythonz install 2.7.2
  pythonz install 3.2

For further instructions, run:

  pythonz help

The default help messages will popup and tell you what to do!

Enjoy pythonz at %(ROOT)s!!
""" % {
            'ROOT': ROOT,
            'yourshrc': yourshrc,
            'shrc': shrc,
            'PATH_ETC': PATH_ETC.replace(os.getenv('HOME'), '$HOME')
        })
コード例 #3
0
ファイル: __init__.py プロジェクト: EvertonSilva/pythonz
def systemwide_pythonz():
    PythonzInstaller.install(INSTALLER_ROOT)
    PythonzInstaller.systemwide_install()
    logger.log("""
Well-done! Congratulations!

The pythonz is installed as:

  %(ROOT)s

After that, exit this shell, start a new one, and install some fresh
pythons:

  pythonz install 2.7.2
  pythonz install 3.2

For further instructions, run:

  pythonz help

The default help messages will popup and tell you what to do!

Enjoy pythonz at %(ROOT)s!!
""" % {'ROOT':ROOT})
コード例 #4
0
ファイル: __init__.py プロジェクト: jgarro2/todolist
def systemwide_pythonz():
    PythonzInstaller.install(INSTALLER_ROOT)
    PythonzInstaller.systemwide_install()
    logger.log("""
Well-done! Congratulations!

The pythonz is installed as:

  %(ROOT)s

After that, exit this shell, start a new one, and install some fresh
pythons:

  pythonz install 2.7.2
  pythonz install 3.2

For further instructions, run:

  pythonz help

The default help messages will popup and tell you what to do!

Enjoy pythonz at %(ROOT)s!!
""" % {'ROOT': ROOT})
コード例 #5
0
ファイル: __init__.py プロジェクト: EvertonSilva/pythonz
def upgrade_pythonz():
    PythonzInstaller.install(INSTALLER_ROOT)
コード例 #6
0
ファイル: __init__.py プロジェクト: jgarro2/todolist
def upgrade_pythonz():
    PythonzInstaller.install(INSTALLER_ROOT)