SeattleTestbed / seash

Interactive vessel management tool
MIT License
0 stars 10 forks source link

Command to automatically upload dependencies for RepyV2 scripts #58

Closed choksi81 closed 9 years ago

choksi81 commented 10 years ago

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.

choksi81 commented 10 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

choksi81 commented 10 years ago

Attachments: https://github.com/SeattleTestbed/attic/blob/master/TICKET_ATTACHMENTS/autoupload_dependencies.patch

aaaaalbert commented 9 years ago

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.