cmusatyalab / steeleagle

Automated drone flights for visual inspection tasks
GNU General Public License v2.0
5 stars 4 forks source link

requirements.txt is no longer generated and included in the .ms zip file #24

Closed teiszler closed 8 months ago

teiszler commented 8 months ago

In hermes, we used pipreqs to generate a requirements.txt file that was then packed into the .ms (zip) file. This no longer appears to be happening in Compiler.java.

            # Generate requirements.txt inside the python directory
            os.system("cd ./python; pipreqs . --force")

            # Add requirements.txt to the zip, under the new directory
            zf.write("./python/requirements.txt", arcname=f"./requirements.txt")
teiszler commented 8 months ago

https://github.com/cmusatyalab/steeleagle/blob/70351bf1d065612cd49bc87014527193af175c0e/droneDSL/compile/src/main/java/org/droneDSL/compile/Compiler.java#L85

xianglic commented 8 months ago

Pushed the new commit for adding requirements.txt

teiszler commented 8 months ago

Fixed in 7fc3189.