Notices


Reply
Thread Tools
Posts: 323 | Thanked: 118 times | Joined on Nov 2007 @ Australia
#1
Hi Does anyone know if BeautifulSoup is being worked on for Maemo 5 (N900) at all?

Cheers
Rip
 
Posts: 120 | Thanked: 279 times | Joined on Sep 2009 @ Perth, Australia
#2
Beautiful soup is just one .py file - I have already used it in a project I am developing, but have no experience at packaging things. If I ever end up releasing my app I guess I could give it a go.

But if you are just looking to have a play, then you can just drop the file in to the same folder.
 
Posts: 20 | Thanked: 7 times | Joined on Jan 2010 @ Finland
#3
[offtopic-ish]
I want python-lxml.

Haven't checked what's required for it to work though.
[/offtopic]
 
Posts: 323 | Thanked: 118 times | Joined on Nov 2007 @ Australia
#4
so I can put it on the N900 and run the setup.py ?

or just the program I want to test needs to know where it is hiding?
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#5
Originally Posted by RipTorn View Post
so I can put it on the N900 and run the setup.py ?

or just the program I want to test needs to know where it is hiding?
If it really only one file, include this into the package of your project and just "import" it.

On the other hand side you could as well port the Debian package (http://packages.debian.org/sid/python-beautifulsoup) to Maemo as it would be a nice "to have" along with mechanize ;-)

I did this with python-clientform and python-mechanize. It was not that hard after some help from #python-devel.

You can look into my packages, or into other python-${module} packages to fin out how.

Most likely you only have to add pymaemo-optify to "Depends"
http://maemo.org/packages/view/python-mechanize/
http://maemo.org/packages/view/python-clientform/

Cheers
Bjoern
 

The Following User Says Thank You to blubbi For This Useful Post:
Posts: 323 | Thanked: 118 times | Joined on Nov 2007 @ Australia
#6
I'd love to I've barly got the grasp of making packages in debian with debhelper python just seems to confuse me even more.
 
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#7
This is very simple to install from the developer's site. Just download the latest version 3.0 release, extract, cd into the extracted directory, and then:

Code:
python setup.py build
sudo gainroot
python setup.py install
exit
Working fine for me.

Cheers,
Jan
 

The Following User Says Thank You to Big Phat Jan For This Useful Post:
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#8
Originally Posted by Big Phat Jan View Post
This is very simple to install from the developer's site. Just download the latest version 3.0 release, extract, cd into the extracted directory, and then:

Code:
python setup.py build
sudo gainroot
python setup.py install
exit
Working fine for me.

Cheers,
Jan
Well this is suitable for DEVS, but no enduser will install it this way.

If you write software which depends on python-beautifulsoup, you'll have to build a package for all dependencies of you software.

Thought this is only on .py file you could just include it in your project. But I would encourage you to build a package! This way not everybody has to include this .py file but can make use of the package you kindly ported to Maemo ;-)

How to quickly port a python package:

Add the Debain repositories to you /etc/apt/sources.list
Code:
#Debian Stable
#deb ftp://ftp.de.debian.org/debian/ stable main contrib non-free
#deb-src ftp://ftp.de.debian.org/debian/ stable main contrib non-free

#Debian Testing
#deb ftp://ftp.de.debian.org/debian testing main contrib non-free
#deb-src ftp://ftp.de.debian.org/debian/ testing main contrib non-free

#Debian Unstable
#deb ftp://ftp.de.debian.org/debian unstable main contrib non-free
deb-src ftp://ftp.de.debian.org/debian/ unstable main contrib non-free
Update the repo:
Code:
apt-get update
Get the source:
Code:
apt-get source python-${package}
Alter the "Debian/control" file:
Code:
Source: python-${package}
Maintainer: You
XSBC-Original-Maintainer: Original Maintainer
Depends: (Add pymaemo-optify)
Section: user/development
Update the "Debian/changelog" file.

Check the Debian/rules file

Test the package:
Maemo 5 Developer Guide - Packaging Deploying and Distributing - Creating Debian Packages

If it fails check the "Debian/rules" file.

If it builds, upload it to the autobuilder:
Maemo Extras Assistant - Step 1

Thats not that hard, is it?

Cheers
Bjoern
 

The Following 2 Users Say Thank You to blubbi For This Useful Post:
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#9
Originally Posted by blubbi View Post
Thats not that hard, is it?

Cheers
Bjoern
Nope! Most things are easy when you know how though, thank you for the instructions. Of course it doesn't quite end there, as I'm sure you know.

I assumed that the original poster was a developer looking for quick confirmation that it would work before attempting the install. I don't think an end user will ever want to install BeautifulSoup on its own anyway...

Cheers,
Jan
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#10
Originally Posted by Big Phat Jan View Post
Nope! Most things are easy when you know how though, thank you for the instructions. Of course it doesn't quite end there, as I'm sure you know.
Go for it (I mean RipTorn in particular)

Originally Posted by Big Phat Jan View Post
I assumed that the original poster was a developer looking for quick confirmation that it would work before attempting the install. I don't think an end user will ever want to install BeautifulSoup on its own anyway...
Right! So lets rig up a package RipTorn ;-)

CU
Bjoern
 

The Following User Says Thank You to blubbi For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 03:30.