![]() |
Python - BeautifulSoup ?
Hi Does anyone know if BeautifulSoup is being worked on for Maemo 5 (N900) at all?
Cheers Rip |
Re: Python - BeautifulSoup ?
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. |
Re: Python - BeautifulSoup ?
[offtopic-ish]
I want python-lxml. :p Haven't checked what's required for it to work though. [/offtopic] |
Re: Python - BeautifulSoup ?
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? |
Re: Python - BeautifulSoup ?
Quote:
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 |
Re: Python - BeautifulSoup ?
I'd love to I've barly got the grasp of making packages in debian with debhelper :p python just seems to confuse me even more.
|
Re: Python - BeautifulSoup ?
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 Cheers, Jan |
Re: Python - BeautifulSoup ?
Quote:
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 Code:
apt-get update Code:
apt-get source python-${package} Code:
Source: python-${package} 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 |
Re: Python - BeautifulSoup ?
Quote:
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 |
Re: Python - BeautifulSoup ?
Quote:
Quote:
CU Bjoern |
All times are GMT. The time now is 18:59. |
vBulletin® Version 3.8.8