Browse Source

#23

PackageMananger for virtualenv
pull/31/head
Daniel Gyulai 3 years ago
parent
commit
83dfa63035
  1. 4
      alice-ci/setup.cfg
  2. 3
      alice-ci/src/alice/runners/pythonrunner.py

4
alice-ci/setup.cfg

@ -22,12 +22,8 @@ packages =
python_requires = >=3.6 python_requires = >=3.6
install_requires = install_requires =
PyYAML PyYAML
virtualenv
docker docker
[options.entry_points] [options.entry_points]
console_scripts = console_scripts =
alice = alice.cli:main alice = alice.cli:main
#[options.packages.find]
#where = src

3
alice-ci/src/alice/runners/pythonrunner.py

@ -5,7 +5,7 @@ import sys
import shlex import shlex
from ..exceptions import NonZeroRetcode, RunnerError, ConfigException from ..exceptions import NonZeroRetcode, RunnerError, ConfigException
from .pyutils import glob_command from .pyutils import PackageManager, glob_command
# TODO: Handle config like PyPiConfig # TODO: Handle config like PyPiConfig
@ -15,6 +15,7 @@ class PythonRunner:
self.workdir = config["workdir"] self.workdir = config["workdir"]
self.virtual_dir = os.path.abspath(os.path.join(self.workdir, "venv")) self.virtual_dir = os.path.abspath(os.path.join(self.workdir, "venv"))
self.config = config self.config = config
PackageManager.getInstance().ensure("build")
self.__init_venv() self.__init_venv()
def __init_venv(self): def __init_venv(self):

Loading…
Cancel
Save