Пример #1
0
    def create_python_enviroment(self):
        install_packages(["python-virtualenv"])

        virtualenv_bin_file = join(env.remote_virtualenv_path, "bin/activate")
        if not files.exists(virtualenv_bin_file):
            create_directories(env.remote_virtualenv_path, env.user, "0750")
            run("virtualenv --distribute --no-site-packages %s" % env.remote_virtualenv_path)
Пример #2
0
    def create_python_enviroment(self):
        install_packages(
            [
                'python-virtualenv'
            ]
        )

        virtualenv_bin_file = join(env.remote_virtualenv_path, "bin/activate")
        if not files.exists(virtualenv_bin_file):
            create_directories(env.remote_virtualenv_path, env.user, '0750')
            run("virtualenv --distribute --no-site-packages %s" % env.remote_virtualenv_path)
Пример #3
0
 def create_folder(self):
     create_directories(config._remote_app_path, env.user, '0750')
     create_directories(config.remote_release_path, env.user, '0750')
Пример #4
0
 def create_folder(self):
     create_directories(env.remote_app_path, env.user, "0750")
     create_directories(env.remote_release_path, env.user, "0750")