[
https://issues.apache.org/jira/browse/BEAM-4032?focusedWorklogId=720977&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-720977
]
ASF GitHub Bot logged work on BEAM-4032:
----------------------------------------
Author: ASF GitHub Bot
Created on: 04/Feb/22 16:03
Start Date: 04/Feb/22 16:03
Worklog Time Spent: 10m
Work Description: AnandInguva commented on a change in pull request
#16633:
URL: https://github.com/apache/beam/pull/16633#discussion_r799601773
##########
File path: sdks/python/apache_beam/options/pipeline_options.py
##########
@@ -1053,7 +1053,21 @@ def _add_argparse_args(cls, parser):
default=None,
help=(
'Path to a folder to cache the packages specified in '
- 'the requirements file using the --requirements_file option.'))
+ 'the requirements file using the --requirements_file option.'
+ 'If you want to skip populating requirements cache, please '
+ 'specify --requirements_cache skip. This would install all'
+ 'the packages from requirements file on the worker.'))
+ parser.add_argument(
+ '--requirements_cache_only_sources',
+ action='store_true',
+ help=(
+ 'Enable this flag to populate requirements cache with Source'
+ 'distributions(sdists) of the dependencies mentioned in the '
+ '--requirements_file'
+ 'Note: This step would slow down the worker startup time'
Review comment:
Added BEAM-4032, since it has the discussion thread, and comments on
this issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 720977)
Time Spent: 16h 50m (was: 16h 40m)
> Support staging binary distributions of dependency packages.
> ------------------------------------------------------------
>
> Key: BEAM-4032
> URL: https://issues.apache.org/jira/browse/BEAM-4032
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Reporter: Valentyn Tymofieiev
> Assignee: Anand Inguva
> Priority: P2
> Time Spent: 16h 50m
> Remaining Estimate: 0h
>
> requirements.txt only supports source-distribution dependencies [1].
> --extra_packages does not officially support wheel files [2].
> It is possible to expand this to support binary distributions as long as we
> have the knowledge of the target platform.
> We should take into consideration the mechanisms of staging dependencies
> through portability framework, and perhaps consolidate some of the existing
> options.
> [https://github.com/apache/beam/blob/a79d1b4fc27eb81db0d9a773047820a206f3d238/sdks/python/apache_beam/runners/dataflow/internal/dependency.py#L260]
> [https://github.com/apache/beam/blob/a79d1b4fc27eb81db0d9a773047820a206f3d238/sdks/python/apache_beam/runners/dataflow/internal/dependency.py#L188]
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)