[Buildroot] [PATCH v2 2/2] package/python-web2py: new package
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Apr 13 21:10:59 UTC 2015
Dear Angelo Compagnucci,
On Mon, 13 Apr 2015 16:43:08 +0200, Angelo Compagnucci wrote:
> dependencies. Probably only python would suffice, cause python-sqlite
> is always compiled with python cause it's selected.
There is no such thing as python-sqlite. There is only python, which
may or may not have the sqlite functionality. In such cases, what you
have to do is:
1/ At the Config.in level, make sure you select the relevant options,
i.e BR2_PACKAGE_PYTHON_SQLITE (or BR2_PACKAGE_PYTHON3_SQLITE if you
want to support Python 3)
2/ At the .mk level, depend on the appropriate package, in this case
'python' (or 'python3')
> > This package has a setup.py. Any reason why you're not using it,
> > together with the python-package infrastructure?
>
> I can try! Honestly, I've not explored the option cause web2py is self
> contained and it doesn't require installation. It uses a writable
> directory for served applications, so suing a custom directory un
> /usr/share with writing permission setted to www-data seemed the most
> sensible choice.
Installing with python-package seems to work, but it does not install
the web2py.py program itself, so it should be done separately. Also, it
is a bit weird that the whole thing has to be part of a www-data
writable directory, no?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list