All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/2] package/python-web2py: new package
Date: Tue, 14 Apr 2015 10:56:19 +0200	[thread overview]
Message-ID: <20150414105619.13a008df@free-electrons.com> (raw)
In-Reply-To: <CA+TH9VmPa_hiGf4OmhUZf2vm3zKb0=y0=DE=DEZOLN4dk+LHdQ@mail.gmail.com>

Dear Angelo Compagnucci,

On Tue, 14 Apr 2015 10:46:21 +0200, Angelo Compagnucci wrote:

> >> 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.
> 
> Yes, I tried and it's practically useless.

Well, the setup.py can be fixed to also install web2py.py, or the
web2py.py can be installed by Buildroot separately, using a post
install hook.

> Honestly, more or less all the application framework I saw in the past
> runs in a www-data owned directory, I can think of joomla, redmine an
> many others I poked with.
> Probably do you want a more finer grain in the permission table, like
> giving writable permissions only to the directories that really need
> it, I can try!

Well, if the Python modules of web2py get installed by the setup.py
script, they are installed in /usr/lib/python<version>/site-packages/.
And clearly, we do not want to directory to be owned by www-data.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-04-14  8:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13 13:57 [Buildroot] [PATCH v2 0/2] Web2py and pydal new packages Angelo Compagnucci
2015-04-13 13:57 ` [Buildroot] [PATCH v2 1/2] package/python-pydal: new package Angelo Compagnucci
2015-04-13 14:17   ` Thomas Petazzoni
2015-04-13 14:34     ` Angelo Compagnucci
2015-04-13 21:04       ` Thomas Petazzoni
2015-04-13 13:57 ` [Buildroot] [PATCH v2 2/2] package/python-web2py: " Angelo Compagnucci
2015-04-13 14:21   ` Thomas Petazzoni
2015-04-13 14:43     ` Angelo Compagnucci
2015-04-13 21:10       ` Thomas Petazzoni
2015-04-14  8:46         ` Angelo Compagnucci
2015-04-14  8:56           ` Thomas Petazzoni [this message]
2015-04-14 10:31             ` Angelo Compagnucci

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150414105619.13a008df@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.