------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Plone-developers mailing list
Plone-de...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-developers
Excellent idea. Hopefully this kind of projects (plone-devstart, plone.api) will bring more and more fire power to the Plone community. Thanks Martin. Giacomo
id did a builtout with it an it worked nicely.
I think it would be good to point to the fact, that one shoudl first start the virtualenv befor starting builout.
Op 10-03-12 23:15, Martin Aspeli schreef:
Thanks for creating this.
I wanted to push a simple fix (PIL mail fail -> PIL may fail), but I have no write access. Maybe something needs to be fixed since this started out on your own github account.
The script complains about a missing jpeglib.h, but when I tell it to continue PIL gets compiled just fine. Uploading a jpeg works fine too, including creating the extra sizes. This is on Mac OSX 10.6.8, both with the standard Mac Python and with a Python from buildout.python with a virtualenv in front (and with PIL already installed actually). So it does not include the directory containing jpeglib.h. Not sure how that would be solvable in a generic way. But anyway, PIL is working for me.
David Glick |
|
The NPO Engagement Party 2012. So much more fun than the wedding reception. |
-- Maurits van Rees: http://maurits.vanrees.org/ Zest Software: http://zestsoftware.nl
i see this already setup ... i believe there are quite some folks in
the Developers team.
--
Rok Garbas
http://www.garbas.si
r...@garbas.si
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
On 3/10/12 5:15 PM, Martin Aspeli wrote:Hi,Somewhat inspired by the goals of the ``plone.api`` initiative and basedon the experience of seeing many, many people struggle to get a "safe"Plone development up and running due to problems with polluted systemPython interpreters, missing libraries and confusing buildouts, I havecreated a script called ``plone-devstart.py``.
+0
In the interest of stop energy (kidding)… but seriously: can we not go
in this direction, if at all possible? Or at least think out loud a bit
more before first.
My thoughts:
We've spent years getting Plone situated in a "nice" place within the
Python community. To address the concerns of the ``plone.api`` folks and
anyone that has trouble installing or developing add-ons for Plone, I
would strongly recommend that we adhere very closely to "Python best
practices"[1].
Now, I completely understand Martin's motivation here and may personally
be interested in trying plone-devstart.py to see what he has come up
with. But I don't think, at least my gut reaction tells me, that a
project-specific script is not what we need or want more of here[2].
Think about it this way: the Plone project has very ambitious goals with
regard to CMS functionality, and a limited set of developers to
accomplish those goals. We don't want those resources spent on Python
module installation problems, if we can help it. Better to offload that
problem to the worldwide community of Python folks IMHO for "free" support.
Alex
[1] Support: "pip install -r 4.2.x.txt Plone" ASAP. Failures with this
process become "general Python failures" not "Plone specific failures".
Don't have PIL? "pip install Pillow" and so on. Let requirements.txt
equal versions.cfg in effect, and let's figure out how to build out a
bunch of zcml slugs without buildout. (Actually, with Pillow, it's
probably now "safe" to depend on it in the way we depend on Zope2.
Installation problems have been practically eliminated for all major
OSes. The only "gotcha" is C extensions, but Zope2 has those too. Oh and
PIL's deps, but the Unified Installer includes those for its purposes
and anyone that can type "pip install Plone" can probably type
"{aptitude,brew,etc} install libjpeg-dev" and so on.)
[2] One exception may be if "pip install plone-devstart" were supported.
But isnt there a widely spreaded tool for doing so: GNU Autoconf and GNU Automake? It can check if preconditions for building PIL and Zope2 C-Extensions are meet. This would then end up in a classic CMMI cycle. And at the end (after make install step) at given target theres a plone (dev?) environment.
On 3/13/12 4:01 PM, Martin Aspeli wrote:
I think you need to look a bit more closely at what the script does
before passing judgment. I feel like your comment below misses the point.
I understand what you are trying to do, and I'm not passing judgement, so please don't misunderstand why I'm taking the time to comment.
What I am saying is: let us think very carefully about who we are targeting with something like plone-devstart and make sure (i.e. via group consensus and/or FWT evaluation, as needed) we are taking the "right" steps for that target audience.
According to the documentation, the target audience is:
---
… those with a system-installed or custom compiled Python … no need to have a functioning easy_install or pip to be able to use it.
----
Based on those statements, I'm not sure if that means "Python programmers" in general or folks more, or less, skilled than that. So that's the first thing I'm trying to understand. I ran the script and committed the output to:
On 3/13/12 7:14 PM, Martin Aspeli wrote:
So far, anyone I'd consider in the target audience who've managed to
reply in this thread have been pretty positive, so that's probably a
good sign.
Sorry, not sure what you mean. Can we pick a name like "integrators"? and/or "product developers"?
It means anyone who wants to do Plone development, and who is not an
expert or even all that familiar with:
- setuptools
- Python eggs
- sys.path and site packages
- compiling stuff from source
- Plone
- Plone development
- buildout
- Zopeskel
OK so "not Python programmers", that helps.
Hi Martin,
For kicks I tried plone-devstart.py on a RHEL5 machine with system
Python 2.4.3. I expected to be told that I needed 2.6.
$ python plone-devstart.py devstarttest
Welcome to plone-devstart (version 0.2)
...
Enter a Plone version number [4.1]
* Checking for known good versions set at
http://dist.plone.org/release/4.1/versions.cfg ...
Traceback (most recent call last):
File "plone-devstart.py", line 449, in ?
main()
File "plone-devstart.py", line 242, in main
if not check_url(kgs_url):
File "plone-devstart.py", line 113, in check_url
connection = httplib.HTTPConnection(split.netloc, port=split.port)
AttributeError: 'tuple' object has no attribute 'netloc'
Poking around, it looks like 2.4's urlparse.urlsplit returns a plain
tuple with no 'netloc' or other attributes. [1]
Could plone-devstart.py check for a supported Python version (and fail
with a nicer error message) before checking the KGS url?
Cheers,
Dan
[1] http://docs.python.org/release/2.4/lib/module-urlparse.html
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
Hi Martin,I've tested as much as I can, but if this is to work out for a broader
audience, we need lots of people to test. If you have a particularly
messed up environment, I'd like to hear about it. :)
For kicks I tried plone-devstart.py on a RHEL5 machine with system Python 2.4.3. I expected to be told that I needed 2.6.
$ python plone-devstart.py devstarttest...
Welcome to plone-devstart (version 0.2)
Enter a Plone version number [4.1]
* Checking for known good versions set athttp://dist.plone.org/release/4.1/versions.cfg ...File "plone-devstart.py", line 449, in ?
Traceback (most recent call last):
main()
File "plone-devstart.py", line 242, in main
if not check_url(kgs_url):
File "plone-devstart.py", line 113, in check_url
connection = httplib.HTTPConnection(split.netloc, port=split.port)
AttributeError: 'tuple' object has no attribute 'netloc'
Poking around, it looks like 2.4's urlparse.urlsplit returns a plain tuple with no 'netloc' or other attributes. [1]
Could plone-devstart.py check for a supported Python version (and fail with a nicer error message) before checking the KGS url?