Skip to content

Setup.py is ignoring modules on dev

What commit version of aidge do you use

  • aidge: dev

Problem description

setup.py script in the aidge repo seems not to have been updated for the dev branch as it seems the aidge_core and aidge_onnx repo are migrating towards a pyproject.toml.

    if not (has_python_file(module_name, "setup.py"):
        raise RuntimeError("Setup.py file required to install this module")

there is no setup.py anymore in the aidge_onnx dev branch

    # Check if the module has a requirements file
    # If, so run it
    if(has_python_file(module_name, "requirements.txt")):
        os.system(f"{sys.executable} -m pip install -r {module_name / 'requirements.txt'}")

    # Install the module in the user python environment
        os.system(f"{sys.executable} -m pip install {module_name} -v")

there is no requirements in aidge_core dev branch

So we either have a RuntimError or the module is simply ignored when launching the setup.