tests/packaging/dependencies.py: argument for path to setup.py added
pymod = import('python')
py3 = pymod.find_installation('python3')
- py3_deps = py3.dependency()
+ py3_deps = run_command(py3, 'tests/packaging/dependencies.py', 'setup.py', check: false)
if py3.language_version().version_compare('<3.6')
error('At least Python 3.6 is required.')
+ elif py3_deps.returncode() != 0
+ error(py3_deps.stderr().strip())
else
+ message('all dependencies found')
build_manager = true
endif
sys.modules["build"] = dummy
# load install_requires array from setup.py
-spec = importlib.util.spec_from_file_location("setup", "manager/setup.py")
+spec = importlib.util.spec_from_file_location("setup", sys.argv[1] if len(sys.argv) == 2 else "manager/setup.py")
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
install_requires = mod.install_requires