<#5343 [Core feature] UX improvement: add --copy ...
# flyte-github
c
#5343 [Core feature] UX improvement: add --copy flag to pyflyte run for more targeted file copying during fast registration Issue created by cosmicBboy ### Motivation: Why do you think this is important? Say I have the following flytekit project folder structure: /my_project /src init.py module_a.py ... # etc tasks.py workflows.py setup.py Where
src
is a pure python internal library that I can independently run/test. Then I want to import modules from
src
into my flytekit
tasks.py
and
workflows.py
files. When I build my
ImageSpec
, I currently have to role my own solution to install
src
is a pip package (maybe via github). Then, when I want to quickly iterate on it with
pyflyte run --remote
, I use the
--copy-all
flag to make sure
src
is in the PYTHONPATH of the container running my tasks. ### Goal: What should the final outcome look like, ideally? Add a
--copy
flag, which can be specified multiple times for more targeted inclusion of files during fast registration
Copy code
pyflyte run --copy dir1 --copy my/dir2
### Describe alternatives you've considered The current workarounds for this are
--copy-all
at iteration time and pip installing via github at ImageSpec build time (there are probably more workarounds here). ### Propose: Link/Inline OR Additional context This is part of a broader pain point of the flyte-maintainer-approved way of building a flytekit project. The tutorials/guides in our docs sort of assume you're working on a single file, or some simpler structure that doesn't include having a python project that's separate from flyte task/workflow modules. ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte