cuddly-jelly-27016
05/31/2025, 12:10 AMsrc 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
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/flytecuddly-jelly-27016
05/31/2025, 12:10 AM