1

Since I began using Arch, I have always installed python packages from the Arch repos instead of by using any python package manager (such as pip).

Now I am trying to install ExportPDFCMYK. That depends on Uniconvertor and ImageMagick. The problem is that Uniconvertor depends on the missing package python2-reportlab.

This is one of those very rare times when my usual package installation workflow is not going to cut it.

What steps can I use to install python2-reportlab on Arch? Can I do it using a python package manager? Will that be sufficient to satisfy the dependencies for Uniconvertor package?

Alternatively, is there another method I can use to install ExportPDFCMYK, which is my end goal anyway?

Devon
  • 808
  • 8
  • 12
MountainX
  • 17,168
  • 59
  • 155
  • 264

1 Answers1

1

You have two options for installing reportlab:

  1. pip2 install reportlab
  2. Write a PKGBUILD for python2-reportlab to generate an Arch package

See Pip vs Package Manager for handling Python Packages to decide between the two options. The second option requires you to invest more time but if you push your PKGBUILD to the AUR, you support the community. Trust me, it is not that hard.

If you go with the second option, read Creating packages, PKGBUILD, and then Python package guidelines.

Devon
  • 808
  • 8
  • 12
  • Would `pip install reportlab` give me the python2 or python3 version or reportlab? I need python2 in this case. Also, maybe I'm stupid, but last time I tried to write a `PKGBUILD ` I could not do it. – MountainX Feb 07 '20 at 19:16
  • It looks like I need `pip2 install reportlab`. Should that be run with or without `sudo`? – MountainX Feb 07 '20 at 19:18
  • 1
    If you only need reportlab for your user, try `pip2 install --user`. – Devon Feb 07 '20 at 19:21
  • I need it for all users. So should I run `sudo pip2 install reportlab`? – MountainX Feb 07 '20 at 19:26
  • 1
    Yes. Omitting `sudo` would result in a 'Permission denied' error. – Devon Feb 07 '20 at 19:28