diff options
| author | Bobby <[email protected]> | 2022-11-06 02:24:29 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-06 02:24:29 -0500 |
| commit | edc5ce1b155117c379c4613970fe732f932e257f (patch) | |
| tree | 2aa282e9f1c7326dfc1d77dfac369bd91e669bb2 | |
| parent | ec7fa5bb811ecab8c10fe5f18467801b65eaff1a (diff) | |
| download | texty-edc5ce1b155117c379c4613970fe732f932e257f.tar.xz texty-edc5ce1b155117c379c4613970fe732f932e257f.zip | |
fix: package installs
| -rw-r--r-- | setup.py | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -29,10 +29,8 @@ def install_packages(): with open("PKGLIST", "r") as f: packages = f.readlines() packages = [x.strip() for x in packages] - packages = " ".join(packages) - - # install packages - install_pip(packages) + for package in packages: + install_pip(package) # Package Importer @@ -66,15 +64,15 @@ class Setup: username = self.shell_run("git config --global user.name") if username == "": questions = [ - inquirer.Confirm( + globals()["inquirer"].Confirm( "set_username", message="Do you want to set git author name?", default=True, ), ] - answers = inquirer.prompt(questions) + answers = globals()["inquirer"].prompt(questions) if answers["set_username"]: - username = inquirer.text( + username = globals()["inquirer"].text( message="Enter git author name (not username): " ) self.shell_run(f'git config --global user.name "{username}"') @@ -84,15 +82,15 @@ class Setup: email = self.shell_run("git config --global user.email") if email == "": questions = [ - inquirer.Confirm( + globals()["inquirer"].Confirm( "set_email", message="Do you want to set git author email?", default=True, ), ] - answers = inquirer.prompt(questions) + answers = globals()["inquirer"].prompt(questions) if answers["set_email"]: - email = inquirer.text(message="Enter git author email: ") + email = globals()["inquirer"].text(message="Enter git author email: ") self.shell_run(f'git config --global user.email "{email}"') else: logger.warn("Git author email not set.") @@ -133,6 +131,8 @@ You may also want to activate the virtual environment, if you haven't already: CONTEXT_SETTINGS = dict(help_option_names=["-h", "--help"]) +click = globals()["click"] + @click.group(context_settings=CONTEXT_SETTINGS) def cli(): |
