@do
def upload_pip_index(scratch_directory, target_bucket):
 packages = (yield Effect(ListS3Keys(bucket=target_bucket, prefix='python/')))
 index_path = create_pip_index(scratch_directory=scratch_directory, packages=packages)
 (yield Effect(UploadToS3(source_path=scratch_directory, target_bucket=target_bucket, target_key='python/index.html', file=index_path)))

@ do def upload_pip_index ( scratch_directory , target_bucket ) : packages = ( yield Effect ( ListS3Keys ( bucket = target_bucket , prefix = 'python/' ) ) ) index_path = create_pip_index ( scratch_directory = scratch_directory , packages = packages ) ( yield Effect ( UploadToS3 ( source_path = scratch_directory , target_bucket = target_bucket , target_key = 'python/index.html' , file = index_path ) ) )
upload an index file for pip to s3 .