[aur-general] Stumped on python split package
Hi, I must be missing something. When I install python-pypump-git or python2-pypump-git, I get the same package. I have other split packages installed and they install correctly. Can someone look at this PKGBUILD and let me know what I did wrong? Thanks Storm -- -- 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 How many Internet mail list subscribers does it take to change a lightbulb? http://goo.gl/eO4PJ "Serpent's kin, born of sin. Dark within, father of the wolf!" Amon Amarth - Father of the Wolf
On Mon, Jun 30, 2014 at 03:11:54PM -0400, Storm Dragon wrote:
Hi, I must be missing something. When I install python-pypump-git or python2-pypump-git, I get the same package. I have other split packages installed and they install correctly. Can someone look at this PKGBUILD and let me know what I did wrong? Thanks Storm --
-- 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 How many Internet mail list subscribers does it take to change a lightbulb? http://goo.gl/eO4PJ "Serpent's kin, born of sin. Dark within, father of the wolf!" Amon Amarth - Father of the Wolf
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
pkgbase=python-pypump-git pkgname=("python-pypump-git" "python2-pypump-git") pkgver=v0.5.r76.gc73e093 pkgrel=2 pkgdesc="An interface to the pump.io API's." arch=('any') url="https://github.com/xray7224/pypump" license=('GPL3') source=("git+https://github.com/xray7224/pypump.git") md5sums=('SKIP')
pkgver() { cd "${srcdir}/pypump" git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' }
package_python-pypump-git() { depends=('python' 'python-requests' 'python-requests-oauthlib' 'python-six' 'python-dateutil') makedepends=('python-setuptools')
makedepends in a package function will never be read. This array belongs in the global section.
cd "${srcdir}/pypump" python setup.py install --root="${pkgdir}/" --optimize=1 }
package_python2-pypump-git() { depends=('python2' 'python2-requests' 'python2-requests-oauthlib' 'python2-six' 'python2-dateutil') makedepends=('python2-setuptools')
Same. Merge this into a global makedepends.
cd "${srcdir}/pypump" python2 setup.py install --root="${pkgdir}/" --optimize=1
So, does the following work? makepkg -i --pkg python2-pypump-git makepkg -i --pkg python-pypump-git If it does, you need to make a prepare function that makes a copy of the source tarball so that you aren't reusing the same build directories for 2 different builds.
}
Hi, Thanks for the help. I moved the makedepends into global space. I added the prepare() function. I haven't uploaded yet cause I'm not exactly sure how to specify the package I want with makepkg. I read the man page again, but either missed how to do it or it's not included. How would I specify I want to build python2-pypump-git instead of the python3 version? Here's the new PKGBUILD. does everything look right here? Thanks Storm On Mon, Jun 30, 2014 at 03:22:06PM -0400, Dave Reisner wrote:
On Mon, Jun 30, 2014 at 03:11:54PM -0400, Storm Dragon wrote:
Hi, I must be missing something. When I install python-pypump-git or python2-pypump-git, I get the same package. I have other split packages installed and they install correctly. Can someone look at this PKGBUILD and let me know what I did wrong? Thanks Storm --
-- 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 How many Internet mail list subscribers does it take to change a lightbulb? http://goo.gl/eO4PJ "Serpent's kin, born of sin. Dark within, father of the wolf!" Amon Amarth - Father of the Wolf
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
pkgbase=python-pypump-git pkgname=("python-pypump-git" "python2-pypump-git") pkgver=v0.5.r76.gc73e093 pkgrel=2 pkgdesc="An interface to the pump.io API's." arch=('any') url="https://github.com/xray7224/pypump" license=('GPL3') source=("git+https://github.com/xray7224/pypump.git") md5sums=('SKIP')
pkgver() { cd "${srcdir}/pypump" git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' }
package_python-pypump-git() { depends=('python' 'python-requests' 'python-requests-oauthlib' 'python-six' 'python-dateutil') makedepends=('python-setuptools')
makedepends in a package function will never be read. This array belongs in the global section.
cd "${srcdir}/pypump" python setup.py install --root="${pkgdir}/" --optimize=1 }
package_python2-pypump-git() { depends=('python2' 'python2-requests' 'python2-requests-oauthlib' 'python2-six' 'python2-dateutil') makedepends=('python2-setuptools')
Same. Merge this into a global makedepends.
cd "${srcdir}/pypump" python2 setup.py install --root="${pkgdir}/" --optimize=1
So, does the following work?
makepkg -i --pkg python2-pypump-git makepkg -i --pkg python-pypump-git
If it does, you need to make a prepare function that makes a copy of the source tarball so that you aren't reusing the same build directories for 2 different builds.
}
-- -- 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 Do you get paid for tweeting? I do: http://spn.tw/r11uj ____________________________ < http://www.stormdragon.us/ > ---------------------------- \ / \ //\ \ |\___/| / \// \\ /0 0 \__ / // | \ \ / / \/_/ // | \ \ @_^_@'/ \/_ // | \ \ //_^_/ \/_ // | \ \ ( //) | \/// | \ \ ( / /) _|_ / ) // | \ _\ ( // /) '/,_ _ _/ ( ; -. | _ _\.-~ .-~~~^-. (( / / )) ,-{ _ `-.|.-~-. .~ `. (( // / )) '/\ / ~-. _ .-~ .-~^-. \ (( /// )) `. { } / \ \ (( / )) .----~-.\ \-' .~ \ `. \^-. ///.----..> \ _ -~ `. ^-` ^-_ ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~ /.-~
On Mon, Jun 30, 2014 at 11:16 PM, Storm Dragon <stormdragon2976@gmail.com> wrote:
Do you get paid for tweeting? I do: http://spn.tw/r11uj ____________________________ < http://www.stormdragon.us/ >
Not to nitpick on your signature, but did you know you send the above? I figured you might be glad to know, most of us would not put something like this on purpose in their signature. Maybe your account data needs some polishing (and a new password)? cheers! mar77i
Hi, Actually, sponsored tweets used to work as advertised. They may still, I'm not sure, I haven't recieved offers from them in a while. I kinda forgot about them. I guess I'll remove that one from my sig since I am no longer sure of them. Thanks Storm On Mon, Jun 30, 2014 at 11:32:10PM +0300, Martti Kühne wrote:
On Mon, Jun 30, 2014 at 11:16 PM, Storm Dragon <stormdragon2976@gmail.com> wrote:
Do you get paid for tweeting? I do: http://spn.tw/r11uj ____________________________ < http://www.stormdragon.us/ >
Not to nitpick on your signature, but did you know you send the above? I figured you might be glad to know, most of us would not put something like this on purpose in their signature. Maybe your account data needs some polishing (and a new password)?
cheers! mar77i
-- -- 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 "As the moon is rising, give us the sign. Now let us rise up in awe, rock 'n' roll angels bring thy hard rock hallelujah, demons and angels all in one have arrived." Lordi - Hard Rock Hallelujah
participants (3)
-
Dave Reisner
-
Martti Kühne
-
Storm Dragon