[Zope-dev] Re: Product installation (implicit vs. explicit)

2005-12-22 Thread Rocky Burt
Chris McDonough wrote:
 The question is this: do you think there should be an explicit 
 install step for egg packages/Products or do you think it should be 
 possible to just put eggs on your PYTHONPATH (and perhaps adjust a 
 config file with requirements)?

To be honest, the explicit'ness of an external egg install process irks
me but I cannot really give a reason why (perhaps its just because I'm
used to having Zope2 products just work).

Also, with having to install eggs, how would this work with eggs that
are actually directories (that are formed like egg zip files) and
dealing with eggs from a development standpoint.  Does this mean they
would get copied some place?  Or just that something would be registered
into the zodb registering those eggs, etc...

- Rocky


-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
ServerZen Hosting -- http://www.serverzenhosting.net
News About The Server -- http://www.serverzen.net

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Product installation (implicit vs. explicit)

2005-12-22 Thread Chris McDonough

On Dec 22, 2005, at 10:17 AM, Rocky Burt wrote:


Chris McDonough wrote:

The question is this: do you think there should be an explicit
install step for egg packages/Products or do you think it should be
possible to just put eggs on your PYTHONPATH (and perhaps adjust a
config file with requirements)?


To be honest, the explicit'ness of an external egg install process  
irks

me but I cannot really give a reason why (perhaps its just because I'm
used to having Zope2 products just work).


What do Java people expect from jar files (I ask as a Java dope)?  Do  
they have a more limited scope (no dependencies, for example?)


Also, with having to install eggs, how would this work with eggs  
that

are actually directories (that are formed like egg zip files) and
dealing with eggs from a development standpoint.  Does this mean they
would get copied some place?  Or just that something would be  
registered

into the zodb registering those eggs, etc...


I doubt anything would go into the ZODB; other than that I'm not  
sure.  Whatever got created would almost certainly be based on  
Phillip's easy_install program which is documented at http:// 
peak.telecommunity.com/DevCenter/EasyInstall .


- C


___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Product installation (implicit vs. explicit)

2005-12-22 Thread Andreas Jung



--On 22. Dezember 2005 10:46:42 -0500 Chris McDonough [EMAIL PROTECTED] 
wrote:


What do Java people expect from jar files (I ask as a Java dope)?  Do
they have a more limited scope (no dependencies, for example?)


Jar files have no dependencies.

-aj


pgpKlIVHcdQM0.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Product installation (implicit vs. explicit)

2005-12-22 Thread Fred Drake
On 12/22/05, Andreas Jung [EMAIL PROTECTED] wrote:
 Jar files have no dependencies.

Well, I know you know what you mean here, but I'll elaborate since the
kids haven't started fighting yet this morning.  :-)

Jar files don't have dependency metadata.  They're pretty much
equivalent to zipped Python libraries.  Python Eggs take the next step
by adding the dependency information and other interesting bits in the
support infrastructure.  I'm sure there's a Java equivalent (or
several), but I've not heard of it.


  -Fred

--
Fred L. Drake, Jr.fdrake at gmail.com
There is no wealth but life. --John Ruskin
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Product installation (implicit vs. explicit)

2005-12-22 Thread Rocky Burt
Chris McDonough wrote:
 What do Java people expect from jar files (I ask as a Java dope)?  Do 
 they have a more limited scope (no dependencies, for example?)

Coming from a heavy java/j2ee background I can say that people in
java-land expect to place jar's on the java classpath (equivalent of
pythonpath) and they just work with regard to showing up on the classpath.

Taking this one step further, a Zope2 product egg would be closer to a
J2EE ear (Enterprise ARchive) file rather than a Java jar file.  An ear
file is basically a jar file with extra metadata stating that it follows
the appropriate conventions for j2ee deployment (basically instructions
on which parts of the ear file are for ejb management, more for web file
management, etc).

Now the best question is, do ear files get automatically configured and
installed by a j2ee server?  Answer: It depends.

This is comppletely up to the j2ee server implementation.  Orion and
JBoss for example (full j2ee implementations) have a special directory
where you can simply drop ear files and they get automatically get
picked up by the server and deployed as applications/components.

But, having said that, I know for a fact that the preferred manner to
configure an ear file with Orion is to do it explicitly in Orion's xml
configuration files.

Hopefully that sheds some light.

Regarding dependencies, no, jar/war/ear files (java's zip file types) do
not have dependency configuration although they do have the ability to
use something else if it exists (you can specify a Class-Path argument
in the manifest file).

- Rocky


-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
ServerZen Hosting -- http://www.serverzenhosting.net
News About The Server -- http://www.serverzen.net

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Product installation (implicit vs. explicit)

2005-12-22 Thread Stefane Fermigier
Fred Drake wrote:
 On 12/22/05, Andreas Jung [EMAIL PROTECTED] wrote:
 
Jar files have no dependencies.
 
 
 Well, I know you know what you mean here, but I'll elaborate since the
 kids haven't started fighting yet this morning.  :-)
 
 Jar files don't have dependency metadata.  They're pretty much
 equivalent to zipped Python libraries.  Python Eggs take the next step
 by adding the dependency information and other interesting bits in the
 support infrastructure.  I'm sure there's a Java equivalent (or
 several), but I've not heard of it.

There is one, and it is a very powerful and mature.

Or so I have been told by my good friend and coworker Eric Barroca.

It's called OSGi (http://www.osgi.org/)

It is used for set top boxes applications provisionning, as well as for
assembling components in the Eclipse platform (including Eclipse RCP)
which, according to another good friend and coworker (Julien Anguenot)
shares some similarities with the Zope 3 component architecture.

http://www.research.ibm.com/journal/sj/442/gruber.pdf
http://www.eclipse.org/org/press-release/20051011osgi.htm

  S.

-- 
Stéfane Fermigier, Tel: +33 (0)6 63 04 12 77 (mobile).
Nuxeo Collaborative Portal Server: http://www.nuxeo.com/cps
Gestion de contenu web / portail collaboratif / groupware / open source!
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )