Use IO.copy_stream to copy the package to import.