Skip to content

brenthuisman/par2cmdline-turbo.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

par2cmdline-turbo.py

This package provides par2cmdline-turbo as a Python package for MacOS, Linux, and Windows; for Python 3.8 and later. Any feedback is welcome!

Note

This distribution of par2cmdline-turbo is currently not affiliated with the official par2cmdline-turbo project.

Motivation

pip is a convenient way to install small utilities, even if they aren't pure Python. It also means you can declare them as dependencies and have pip or other Python package managers handle the dependency for you. This is may be convenient if you live exclusively in Python-land, but still want to use the very excellent par2cmdline-turbo.

Install

$ pip install par2cmdline-turbo

Build

$ git checkout https://github.com/brenthuisman/par2cmdline-turbo.py.git
$ pip wheel ./par2cmdline-turbo.py

Optionally, you can "cross-compile" the wheel for other platforms. It actually just downloads the right binary from the par2cmdline-turbo releases page. Just set the TURBO_PLATFORM environment variable with a supported platform. For instance:

$ TURBO_PLATFORM=linux-x64 pip wheel ./par2cmdline-turbo.py

Supported platforms: linux-amd64, linux-arm64, linux-armhf, macos-arm64, macos-x64, win-arm64, win-x64, win-x86. You can use generate-wheels.sh to generate them all.

Usage

After install, par2 should be in your path and usable as upstream par2cmdline. See their usage documentation.

Dependencies

At build-time, you need 7z[.exe] in your PATH when you are building Windows wheels.

Credits

  • Thanks to @animetosho for creating ParPar and taking the time to wrap it up as par2cmdline-turbo.
  • Thanks to @agriyakhetarpal for giving me the idea and code with their hugo-python-distributions.

About

par2cmdline-turbo as a Python package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published