From 4f201e15dfcdff0a3d581066176d9f4e84483278 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Tue, 5 Jul 2022 15:53:15 +1200 Subject: [PATCH 1/2] Create an installation group for optional deps --- compss/programming_model/bindings/python/setup.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/compss/programming_model/bindings/python/setup.py b/compss/programming_model/bindings/python/setup.py index 88fe66871b..d6cf324de4 100644 --- a/compss/programming_model/bindings/python/setup.py +++ b/compss/programming_model/bindings/python/setup.py @@ -135,6 +135,16 @@ def find_packages(path="./src"): sys.exit(1) +INSTALL_REQUIRES = [] +DOCKER_DEPS = [ + 'docker >= 5.0.*' +] +EXTRAS_REQUIRE = { + 'docker': DOCKER_DEPS, + 'all': INSTALL_REQUIRES + DOCKER_DEPS +} + + HERE = pathlib.Path(__file__).parent.resolve() # Get the long description from the README file LONG_DESCRIPTION = (HERE / "README.md").read_text(encoding="utf-8") @@ -178,7 +188,8 @@ def find_packages(path="./src"): package_dir={"pycompss": "src/pycompss"}, packages=[""] + find_packages(), python_requires=">=3.6", - install_requires=[], + install_requires=INSTALL_REQUIRES, + extras_require=EXTRAS_REQUIRE, package_data={ "": [ "log/logging_off.json", From f0bd31915a6824bf3a00c9001a57d40d29f3660e Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Tue, 5 Jul 2022 16:00:37 +1200 Subject: [PATCH 2/2] Update docs --- compss/programming_model/bindings/python/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/compss/programming_model/bindings/python/README.md b/compss/programming_model/bindings/python/README.md index dfbaf474f9..45f9a908c6 100644 --- a/compss/programming_model/bindings/python/README.md +++ b/compss/programming_model/bindings/python/README.md @@ -3,7 +3,7 @@ PyCOMPSs ======== PyCOMPSs is the Python binding for the COMP Superscalar (COMPSs) framework. -It allows to run Python applications with COMPSs. +It allows running Python applications with COMPSs. CONTENT @@ -35,7 +35,7 @@ DEPENDENCIES INSTALLATION ------------ -- Execute the install script (requires root privileges): +- Execute the `install` script (requires root privileges): ./install This will install PyCOMPSs in /usr/local/lib/pythonX.Y/site-packages. @@ -47,3 +47,10 @@ This will install PyCOMPSs in /usr/local/lib/pythonX.Y/site-packages. : Create symbolic links within site-packages (options: true | false). : Install a specific version (e.g. python3.10). : Compile the installation (options: true | false). + +- For a developer editable installation, you can install it with + `pip install -e .`. + +- For optional dependencies, you can install using the dependencies groups + between `[]`'s. + - `pip install -e .[docker]`