2013/10/31

Building Plone Latest

Plone 5 is coming, and calling for contribution. To get a Plone 5 development environment running, see the document for reference first, and run the following commands:

$ git clone -b 5.0  https://github.com/plone/buildout.coredev ./plone50dev
Cloning into 'plone50dev'...
remote: Reusing existing pack: 24795, done.
remote: Counting objects: 32, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 24827 (delta 19), reused 0 (delta 0)
Receiving objects: 100% (24827/24827), 19.90 MiB | 1.83 MiB/s, done.
Resolving deltas: 100% (16193/16193), done.

$ virtualenv --no-site-packages plone50py
The --no-site-packages flag is deprecated; it is now the default behavior.
New python executable in plone50py/bin/python
Installing distribute.....................done.
Installing pip...............done.

# ref 1 and 2 and 3 if run into pkg_resources.DistributionNotFound or pkg_resources.VersionConflict error
$ rm -rf plone50py/lib/python2.7/site-packages/setuptools*
$ rm -rf plone50py/lib/python2.7/site-packages/distribute*

$ cd plone50dev
$ rm -f bootstrap.py
$ wget http://downloads.buildout.org/2/bootstrap.py

$ ../plone50py/bin/python bootstrap.py
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-0.7.2.tar.gz
Extracting in /tmp/tmpAup828
Now working in /tmp/tmpAup828/setuptools-0.7.2
Building a Setuptools egg in /tmp/tmpiv322t
/tmp/tmpiv322t/setuptools-0.7.2-py2.7.egg
Creating directory '/home/marr/plone50dev/bin'.
Creating directory '/home/marr/plone50dev/parts'.
Creating directory '/home/marr/plone50dev/eggs'.
Creating directory '/home/marr/plone50dev/develop-eggs'.
Generated script '/home/marr/plone50dev/bin/buildout'.

$ bin/buildout
# you will see lots of Getting ... Got ... messages for several minutes.

$ bin/instance fg
$ ls src
Plone
Products.ATContentTypes
Products.Archetypes
Products.CMFPlone
Products.DateRecurringIndex
Products.PlacelessTranslationService
Products.PloneTestCase
Products.TinyMCE
borg.localrole
icalendar
mockup
plone.app.content
plone.app.contentlisting
plone.app.contentrules
plone.app.controlpanel
plone.app.dexterity
plone.app.event
plone.app.layout
plone.app.linkintegrity
plone.app.locales
plone.app.portlets
plone.app.referenceablebehavior
plone.app.relationfield
plone.app.search
plone.app.theming
plone.app.upgrade
plone.app.users
plone.app.widgets
plone.event
plone.formwidget.recurrence
plone.portlet.collection
plone.portlet.static
plone.recipe.alltests
plone.recipe.zope2instance
plone.schemaeditor
plone.theme
plone.themepreview
plonetheme.barceloneta
plonetheme.sunburst
z3c.form

No comments: