path and fileobj can be specified simultaneously for build