Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an installation group for optional deps #7

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions compss/programming_model/bindings/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -47,3 +47,10 @@ This will install PyCOMPSs in /usr/local/lib/pythonX.Y/site-packages.
<create_symlinks>: Create symbolic links within site-packages (options: true | false).
<specific_python_version>: Install a specific version (e.g. python3.10).
<compile>: 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]`
13 changes: 12 additions & 1 deletion compss/programming_model/bindings/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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",
Expand Down