Closed choksi81 closed 9 years ago
Author: leonwlaw My patch adds a new command, dyrunv2 that accepts one filename argument, and optionally any arguments to pass to the program. It automates uploading files and calling the user's program. It can be found here: https://seattle.poly.edu/attachment/ticket/1281/autoupload_dependencies.patch
The solution provided in the proposed patch has a few holes I believe (as the regexp won't catch all types of dy_import, etc.)
Here's a less intrusive workaround: Use dy_trace_imports
to find out what libraries your code imports, and the new uploaddir
module to push all of the files with a single command.
It would be convenient for the user if we had a command like run that would also upload any module dependencies a repy program had. For example, if a program dylinks against advertise.repy, it would upload advertise.repy, centralizedadvertise.repy, centralizedadvertise_v2, etc. automatically.