Hi,
The pypump docs say it works for all versions of python, 2.7, through 3.4 I 
think. I made the PKGBUILD using the python3 dependancy because I figure that 
is what most people will have by default. Does this PKGBUILD look ok?
Thanks
Storm
On Sun, Jun 22, 2014 at 07:29:19PM -0400, Jeremy Audet wrote:
Would it be ok to use easy_install-2.7 pypump in a build function or
something?

No. Please make an actual package for pypump, and make p depend on pypump
normally.

I would just make a pypump package, but I cloned the repository, and I'm
not really sure where all that stuff goes lol.

Don't install its files manually. Use the prototype PKGBUILD that Jesse
linked to. (Thank you, Jesse.) If you are installing a Python 2 package,
make sure to adjust the package slightly from the template: execute
`python2 setup.py` instead of `python setup.py`, and adjust the package
name accordingly. For yet more PKGBUILD examples, see some of my own. [1]
[2] For more authoritative guidelines, see [3].

— Jeremy "Ichimonji10" Audet

[1]
https://github.com/Ichimonji10/PKGBUILDs/blob/master/python-django-tables2/PKGBUILD
[2]
https://github.com/Ichimonji10/PKGBUILDs/blob/master/python2-django-tables2/PKGBUILD
[3] https://wiki.archlinux.org/index.php/Python_Package_Guidelines

--

--
Registered Linux user number 508465: https://linuxcounter.net/user/508465.html
My blog, Thoughts of a Dragon: http://www.stormdragon.us/
get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193
Follow me on Twitter: http://www.twitter.com/stormdragon2976
"I am your soul insane"
Slayer - Gemini
# Maintainer: Storm Dragon <[email protected]> 

_pkgname=pypump
pkgname=pypump-git
pkgver=v0.5.r76.gc73e093
pkgrel=1
pkgdesc="An interface to the pump.io API's."
arch=('any')
url="https://github.com/xray7224/$_pkgname";
license=('GPL3+')
makedepends=('python-setuptools')
source=("$_pkgname::git+git://github.com/xray7224/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
 
package() {
  cd "$_pkgname"
  python setup.py install --root="${pkgdir}/" --optimize=1
}

Attachment: pgpMyG89XVRBU.pgp
Description: PGP signature

Reply via email to