You are not logged in.

#26 2009-04-18 01:02:46

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

you seem to be doing it wrong....

>python3 -E -c 'import sys ; from distutils.util import get_platform ; print(get_platform()+"-"+sys.version[0:3])'
linux-i686-3.0

Edit:

why are you using ./python and what does it point to?

Offline

#27 2009-04-18 02:35:00

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 156

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Allan,

I'm not doing wrong actually, it's the python "make test" that fails to build on arch x86_64. However on i686, it works fine, so I believe it's my machine that seems to have issues with it. Here is the PKGBUILD that I'm using:

# $Id: PKGBUILD 20913 2008-12-07 09:20:44Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributer: Jason Chu <jason@archlinux.org>

pkgname=python3
pkgver=3.0.1
pkgrel=1
pkgdesc="A high-level scripting language"
arch=('i686' 'x86_64')
license=('custom')
url="http://www.python.org"
depends=('db' 'bzip2' 'gdbm' 'openssl>=0.9.8d' 'zlib')
makedepends=('tk>=8.5.0' 'sqlite3')
source=(http://www.python.org/ftp/python/${pkgver}/Python-${pkgver}.tar.bz2)
md5sums=('7291eac6a9a7a3642e309c78b8d744e5')

build() {
  cd $srcdir/Python-$pkgver
  ./configure --prefix=/usr/local
  make || return 1
  make test || return 1
  make DESTDIR=$pkgdir install || return 1

  # license
  install -Dm644 LICENSE $pkgdir/usr/local/share/licenses/$pkgname/LICENSE
}

Offline

#28 2009-04-18 03:02:35

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 9,939
Website

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Does the python3 package that I provide in [community] work for you?  Also, the deps are wrong (db is not needed), and gdbm does not get detected properly without a patch.

Offline

#29 2009-04-18 12:20:50

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 156

Re: What will Arch's upgrade strategy be for Python2.6 / Python3.0?

Thanks Allan,  I had no idea that python3 was in community repo, which is why I tried to build it myself. The python3 package works excellent, however I still cant build it correctly on my own system, so it must be something wrong with my machine.

Thank you for your good work Allan!

Offline

Board footer

Powered by FluxBB