def uninstall(opts): for src, dst in getlinks(): debug(opts, "removing link: %s" % dst) if not os.path.islink(dst): debug(opts, "%s does not exist, skipping" % dst) continue os.unlink(dst) # Uninstall the packages environment.manage_setup_pys("uninstall", ROOT_DIR) return os.EX_OK
def uninstall(opts): for src, dst in getlinks(): debug(opts, 'removing link: %s' % dst) if not os.path.islink(dst): debug(opts, '%s does not exist, skipping' % dst) continue os.unlink(dst) # Uninstall the packages environment.manage_setup_pys('uninstall', ROOT_DIR) return os.EX_OK
def uninstall(opts): for src, dst in getlinks(): environment.debug(opts, 'removing link: %s' % dst) if not os.path.islink(dst): environment.debug(opts, '%s does not exist, skipping' % dst) continue os.unlink(dst) environment.uninstall_files(PATHS_TO_COPY, opts) # Uninstall the packages environment.manage_setup_pys('uninstall', ROOT_DIR) return os.EX_OK
def install(opts): # Install the packages in developer mode environment.manage_setup_pys('install', ROOT_DIR) warnings = [] create_dirs(opts) currdir = os.path.abspath(os.path.dirname(__file__)) for src, dst in getlinks(): warning_msg = create_link(opts, os.path.join(currdir, src), dst) if warning_msg: warnings.append(warning_msg) if warnings: print "\n***\nPossible problems: Please read below\n***" for w in warnings: environment.warning(w) return os.EX_OK
def install(opts): # Install the packages in developer mode environment.manage_setup_pys('install', ROOT_DIR) warnings = [] create_dirs(opts) currdir = os.path.abspath(os.path.dirname(__file__)) for src, dst in getlinks(): warning_msg = create_link(opts, os.path.join(currdir, src), dst) if warning_msg: warnings.append(warning_msg) if warnings: print "\n***\nPossible problems: Please read below\n***" for w in warnings: warning(w) return os.EX_OK
def install(opts): # Install the packages in developer mode environment.manage_setup_pys("install", ROOT_DIR) warnings = [] create_dirs(opts) # Ensure the directory is owned by apache os.system("chown -R apache:apache /var/lib/pulp/published/openstack") currdir = os.path.abspath(os.path.dirname(__file__)) for src, dst in getlinks(): warning_msg = create_link(opts, os.path.join(currdir, src), dst) if warning_msg: warnings.append(warning_msg) if warnings: print "\n***\nPossible problems: Please read below\n***" for w in warnings: warning(w) return os.EX_OK
def install(opts): # Install the packages in developer mode environment.manage_setup_pys('install', ROOT_DIR) warnings = [] create_dirs(opts) # Ensure the directory is owned by apache os.system('chown -R apache:apache /var/lib/pulp/published/ostree') currdir = os.path.abspath(os.path.dirname(__file__)) for src, dst in getlinks(): warning_msg = create_link(opts, os.path.join(currdir, src), dst) if warning_msg: warnings.append(warning_msg) if warnings: print "\n***\nPossible problems: Please read below\n***" for w in warnings: warning(w) return os.EX_OK
def install(opts): currdir = os.path.abspath(os.path.dirname(__file__)) warnings = [] # Attempt to install setuptools first; setuptools cannot upgrade itself # since it runs into an infinite loop subprocess.call(["pip", "install", "setuptools>=19.0"]) # Extract the version of debpkgr pobj = subprocess.Popen([ "/usr/bin/rpmspec", "-q", "--queryformat", r"[%{REQUIRENEVRS}\n]", "{}/pulp-deb.spec".format(currdir) ], stdout=subprocess.PIPE) retcode = pobj.wait() if retcode == 0: reqs = [x.strip() for x in pobj.stdout] warnings.extend(pip_install(reqs)) else: warnings.append("Failed to query spec file") # Install the packages in developer mode environment.manage_setup_pys('install', ROOT_DIR) create_dirs(opts) # Ensure the directory is owned by apache os.system('chown -R apache:apache /var/lib/pulp/published/python') for src, dst in getlinks(): warning_msg = create_link(opts, os.path.join(currdir, src), dst) if warning_msg: warnings.append(warning_msg) if warnings: print "\n***\nPossible problems: Please read below\n***" for w in warnings: warning(w) return os.EX_OK