pipman icon indicating copy to clipboard operation
pipman copied to clipboard

Convert pip's packages to Arch Linux's PKGBUILDs

Description

Pipman generates PKGBUILD from pip packages. You can use the generated PKGBUILD as a base to submit a new python package to AUR or just install it on you machine.

Installation

You can install:

  • using the aur package: https://aur4.archlinux.org/packages/pipman-git/
  • cloning this repo and running the ./pipman

Install the colorama module if you want to colorize the output

Usage

The following generates PKGBUILDs for MechanicalSoup and pyrasite packages from pip:

pipman MechanicalSoup pyrasite

Then you should see the directories python-MechanicalSoup and python-pyrasite in the current directory, each containing its PKGBUILD.

You can also specify where you want the PKGBUILDs to be generated:

pipman MechanicalSoup pyrasite --target-dir=/tmp/

You can search for pip packages with the argument -Ss:

pipman -Ss sympy

You can install the generated PKGBUILD automatically with the argument -S:

pipman -S sympy

Pipman keeps track of the packages installed using the -S option. You can update these packages with the following command:

pipman -Su

Check pipman --help for more features.

Credits

  • Thanks to n3f4s for the auto-install feature.