Help!

Deploying/packaging Pylons projects


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python RSS
Next:  In tent  
Author Message
Christoph Haas
External


Since: Feb 17, 2005
Posts: 187



PostPosted: Mon Mar 05, 2007 4:50 pm    Post subject: Deploying/packaging Pylons projects
Archived from groups: linux>debian>maint>python (more info?)

Dear list...

I'm currently trying to write a web application using the "Pylons"
(http://pylonshq.com) web framework. It's very different from the
Apache/cgi-bin/Perl approach I've been using for the last 10-15 years.
Pylons uses the Paste (http://pythonpaste.org) component as a web server
and to deploy web applications using Pylons. Paste creates an .egg from
it.

While the web site is very enthusiastic about the .egg format and how
comfortable "easy_install" is it feels like working completely the wrong
way compared to Debian packages. You can put an .egg file somewhere in
your $PYTHONPATH and it will be used without further installation. That
part sounds good. The automatic dependency satisfaction through
easy_install OTOH is surely evil on Debian. I don't want it to download a
Python module and install it into /usr/local/lib (or even
worse: /usr/lib). In the end I may have an easy_install installed module
in /usr/local and a properly installed Debian package in /usr. Welcome
chaos. Not even to mention that you can't even remove an egg properly.
Sounds like Windows middle ages where uninstalling software properly means
reinstalling the whole operating system.

Now what? I think that the general idea of creating an "egg" from a web
application is nice. You just give the egg to someone else and they don't
have to install anything manually. The egg will do that. On a Debian
system this is of course evil.

I can think of these ways to handle the situation:

- copy the egg into my personal home directory and expand $PYTHONPATH.
This might be enough to deploy a web application. But a global
administrator installation on a system might be even better.
- install the egg into /usr/local and take a lot of care not to get
anything else (dependant modules) installed there. Pythonic and
dangerous.
- use a distribution that doesn't know about packages anyway (Linux from
scratch) Wink

I remember that packaging eggs has been discussed already. And it appears
like there is no common sense solution yet. But can anyone comment on how
to handle these eggs properly? Or are such deployment mechanisms
completely useless on Debian? I already thought about some
magical "egg-buildpackage" script that creates a proper Debian package
from an egg so it can be deployed the Debian way.

Thanks,
Christoph
--
~
~
".signature" [Modified] 1 line --100%-- 1,48 All


--
To UNSUBSCRIBE, email to debian-python-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Mikhail Gusarov
External


Since: Oct 09, 2005
Posts: 101



PostPosted: Mon Mar 05, 2007 4:50 pm    Post subject: Re: Deploying/packaging Pylons projects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Twas brillig at 16:42:42 05.03.2007 UTC+01 when Christoph Haas did gyre and gimble:

CH> I already thought about some magical "egg-buildpackage" script
CH> that creates a proper Debian package from an egg so it can be
CH> deployed the Debian way.

Yep, that's the only reliable solution, but noone came up with the
working one. Probably noone tried too hard Smile

--
JID: dottedmag RemoveThis @jabber.dottedmag.net


--
To UNSUBSCRIBE, email to debian-python-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org
Back to top
Mark Eichin
External


Since: Feb 11, 2007
Posts: 5



PostPosted: Mon Mar 05, 2007 9:40 pm    Post subject: Re: Deploying/packaging Pylons projects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mikhail Gusarov <dottedmag.TakeThisOut@dottedmag.net> writes:

> Twas brillig at 16:42:42 05.03.2007 UTC+01 when Christoph Haas did gyre and gimble:
>
> CH> I already thought about some magical "egg-buildpackage" script
> CH> that creates a proper Debian package from an egg so it can be
> CH> deployed the Debian way.
>
> Yep, that's the only reliable solution, but noone came up with the
> working one. Probably noone tried too hard Smile

It's called easydeb, and it's in pypi, no? It's not *great* (I
certainly wouldn't upload the output - among other things it didn't
even put together a copyright file, last I looked), and there's the
obvious chicken-and-egg problem, but I've used it for a few things
without too much tweaking...


--
To UNSUBSCRIBE, email to debian-python-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Python All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum