The spec file for python-turbogears2 is too complicated at the moment.
If I have time, I'll look at it again tomorrow. Basically, I reckon if
I ensure that the content of site-packages (in a virtual-env plus
easy_install turbogears) should represent the ultimate dependencies
(as mentioned before in this thread). When installed by
easy_installed, dependencies are tracked through the eggs - with rpm,
these would have to be properly specified in the spec file. The *.egg
files I'm looking at now (from the virtualenv) are:

AddOns-0.6-py2.6.egg
BeautifulSoup-3.0.7a-py2.6.egg
BytecodeAssembler-0.3-py2.6.egg
DecoratorTools-1.7-py2.6.egg
Elixir-0.6.1-py2.6.egg
Extremes-1.1-py2.6.egg
Genshi-0.5.1-py2.6-linux-x86_64.egg
PEAK_Rules-0.5a1.dev_r2582-py2.6.egg
setuptools-0.6c9-py2.6.egg
simplejson-2.0.5-py2.6-linux-x86_64.egg
SymbolType-1.0-py2.6.egg
Tempita-0.2-py2.6.egg
TurboJson-1.2-py2.6.egg
WebOb-0.9.4-py2.6.egg
WebTest-1.1-py2.6.egg
Babel-0.9.3-py2.6.egg
Beaker-1.1.2-py2.6.egg
Catwalk-2.0_r160-py2.6.egg
decorator-2.3.2-py2.6.egg
FormEncode-1.2-py2.6.egg
Mako-0.2.3-py2.6.egg
nose-0.10.4-py2.6.egg
Paste-1.7.2-py2.6.egg
PasteDeploy-1.3.2-py2.6.egg
PasteScript-1.7.3-py2.6.egg
Pygments-0.11.1-py2.6.egg
Pylons-0.9.7rc4-py2.6.egg
repoze.tm2-1.0a3-py2.6.egg
repoze.what-1.0rc2_r2927-py2.6.egg
repoze.what.plugins.sql-1.0a3_r2916-py2.6.egg
repoze.who-1.0.9-py2.6.egg
repoze.who.plugins.sa-1.0b2_r2909-py2.6.egg
Routes-1.10.1-py2.6.egg
sprox-0.5rc3-py2.6.egg
SQLAlchemy-0.5.0rc4-py2.6.egg
sqlalchemy_migrate-0.5.dev_r472-py2.6.egg
tg.devtools-2.0b2-py2.6.egg
ToscaWidgets-0.9.5dev_20081026-py2.6.egg
transaction-1.0a1-py2.6.egg
TurboGears2-2.0b2-py2.6.egg
tw.forms-0.9.2-py2.6.egg
WebError-0.9.1-py2.6.egg
WebHelpers-0.6.3-py2.6.egg
zope.interface-3.4.1-py2.6-linux-x86_64.egg
zope.sqlalchemy-0.3-py2.6.egg

I have already packaged each of these individually as part of the
home:babelworx:tg2 project on the openSUSE build service. As
mentioned, this is about writing a proper spec file - I'll let you
know what happens.


On 21 Jan., 02:23, Lukasz Szybalski <[email protected]> wrote:
> On Mon, Jan 12, 2009 at 8:51 AM, Lukasz Szybalski <[email protected]> wrote:
> > On Mon, Jan 12, 2009 at 4:16 AM, frankentux <[email protected]> 
> > wrote:
>
> >> Thanks - there were a lot more packages which I needed to package
> >> (AddOns, PyProtocols, sprox etc). Basically, I just kept entering
> >> paster quickstart and kept getting import errors.
> >> Thus, I kept building packages until there were no import errors. Now
> >> paster quickstart works, but with this error:
>
> >> cfarr...@paddy:/tmp> paster quickstart
> >> 'import site' failed; use -v for traceback
> >> /usr/lib/python2.6/site-packages/dispatch/predicates.py:379:
> >> DeprecationWarning: object.__new__() takes no parameters
> >>  return ExprBase.__new__
> >> (klass,function,*argexprs)
> >> /usr/lib/python2.6/site-packages/tw/core/view.py:202:
> >> DeprecationWarning: object.__new__() takes no parameters
> >>  obj = object.__new__(cls, *args,
> >> **kw)
>
> > Not sure about that error. Can somebody re-produce this on py2.6? My
> > guess would be tha something happen during the installation process
> > that broke the app.
>
> > What I would suggest to do is the following:
>
> > -Create a virtualenv
> > virtualenv --no-site-packages baseline
> > source ./baseline/bin/activate
>
> > - This will give you a clean python virtual environment.
> >  -Install turbogears (below command on a single line)
>
> > easy_install -ihttp://www.turbogears.org/2.0/downloads/current/index
> > tg.devtools
>
> > - See if it runs
> > paster quickstart
>
> > -Now look at the baseline/lib/python2....site-packages and you will
> > find all the prerequisites.  This is probably what you need to
> > package.
>
> > Hope this helps.
> > Lucas
>
> Were you able to package it?
>
> Thanks,
> Lucas
>
> --
> How to create python package?http://lucasmanual.com/mywiki/PythonPaste
> Bazaar and Launchpadhttp://lucasmanual.com/mywiki/Bazaar
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to