The former is older but there are packages for it in distros like
Ubuntu.
progressbar.next()
while left > 0:
length = min(left, blocksize)
- sent = sendfile(dst.fileno(), src.fileno(), offset, length)
+ _, sent = sendfile(dst.fileno(), src.fileno(), offset,
+ length)
offset += sent
left -= sent
progressbar.goto((size - left) // MB)
license='BSD',
packages=find_packages(),
include_package_data=True,
- install_requires=['sh', 'ansicolors', 'progress>=1.0.2', 'pysendfile'],
+ install_requires=['sh', 'ansicolors', 'progress>=1.0.2', 'py-sendfile'],
entry_points={
'console_scripts': [
'snf-image-creator = image_creator.main:main',