Wrox Programmer Forums
|
BOOK: Beginning Python
This is the forum to discuss the Wrox book Beginning Python by Peter C. Norton, Alex Samuel, Dave Aitel, Eric Foster-Johnson, Leonard Richardson, Jason Diamond, Aleatha Parker, Michael Roberts; ISBN: 9780764596544
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Python section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 14th, 2006, 07:02 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mad_finn
Default Archlinux and PythonCard

Hi,

If you're using Archlinux (which I recommend) there currently isn't a package for PythonCard, but if you want to install it (not quite sure all the file locations are correct, as I've only started to experiment with it, and it doesn't install menu items yet), here's a PKGBUILD which you can use - download it and use it as follows:
As a normal user
Code:
mkdir ~/pythoncardbuild
cp PKGBUILD ~/pythoncardbuild
cd ~/pythoncardbuild
makepkg
Then as root
Code:
pacman -A /home/username/pythoncardbuild/pythoncard-0.8.1-1.pkg.tar.gz
To run codeEditor simply type codeEditor in a terminal window as a normal user.
Here is the PKGBUILD
Code:
# Contributor : Jani Talikka <[email protected]>
pkgname=pythoncard
pkgver=0.8.1
pkgrel=1
pkgdesc="PythonCard is a GUI construction kit for building cross-platform desktop applications on Windows, Mac OS X, and Linux, using the Python language."
url="http://pythoncard.sourceforge.net/"
license=""
depends=('python>=2.3' 'wxpython')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/PythonCard-$pkgver.tar.gz)
md5sums=('8e5a88cc70b183d41907d46fadb69819')

build() {
  cd $startdir/src/PythonCard-$pkgver
  python setup.py install --root=$startdir/pkg
  rm $startdir/pkg/usr/bin/install-pythoncard.py
  echo "#!/bin/bash" > $startdir/pkg/usr/bin/codeEditor
  echo "python /usr/lib/python2.4/site-packages/PythonCard/tools/codeEditor/codeEditor.py" >> $startdir/pkg/usr/bin/codeEditor
  chmod +x $startdir/pkg/usr/bin/codeEditor
  echo "PythonCard" > $startdir/pkg/usr/lib/python2.4/site-packages/$pkgname.pth
}









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.