1. Installation of a CubicWeb environment¶
Official releases are available from the `CubicWeb.org forge`_ and from PyPI. Since CubicWeb is developed using Agile software development techniques, releases happen frequently. In a version numbered X.Y.Z, X changes after a few years when the API breaks, Y changes after a few weeks when features are added and Z changes after a few days when bugs are fixed.
Depending on your needs, you will chose a different way to install CubicWeb on your system:
If you are a power-user and need the very latest features, you will
Once the software is installed, move on to Set-up of a CubicWeb environment for better control and advanced features of CubicWeb.
1.1. Docker install¶
Detailed instructions on how to deploy CubicWeb using docker can be found on the docker hub.
The images there are built using the following source code : docker-cubicweb, see it’s README
1.2. Virtualenv install¶
CubicWeb can be safely installed, used and contained inside a virtualenv. You can use either pip or easy_install to install CubicWeb inside an activated virtual environment.
1.3. pip install¶
pip is a python tool that helps downloading, building, installing, and managing Python packages and their dependencies. It is fully compatible with virtualenv and installs the packages from sources published on the `The Python Package Index`_.
A working compilation chain is needed to build the modules that include C extensions. If you really do not want to compile anything, installing lxml, and libgecode will help.
For Debian, these minimal dependencies can be obtained by doing:
apt-get install gcc python3-pip python3-dev python3-lxml
or, if you prefer to get as much as possible from pip:
apt-get install gcc python3-pip python3-dev libxslt1-dev libxml2-dev
For Windows, you can install pre-built packages (possible source). For a minimal setup, install:
setuptools http://www.lfd.uci.edu/~gohlke/pythonlibs/#setuptools
libxml-python http://www.lfd.uci.edu/~gohlke/pythonlibs/#libxml-python>
Make sure to choose the correct architecture and version of Python.
Finally, install CubicWeb and its dependencies, by running:
pip install cubicweb
Many other cubes are available. A list is available at PyPI or at the `CubicWeb.org forge`_.
For example, installing the blog cube is achieved by:
pip install cubicweb-blog
1.4. Install from source¶
You can download the archive containing the sources from http://download.logilab.org/pub/cubicweb/.
Make sure you also have all the Installation dependencies.
Once uncompressed, you can install the framework from inside the uncompressed folder with:
python3 setup.py install
Or you can run CubicWeb directly from the source directory by setting the resource mode to user. This will ease the development with the framework.
There is also a wide variety of cubes. You can access a list of availble cubes at the `CubicWeb.org Forge`_.
1.5. Install from version control system¶
To keep-up with on-going development, clone the Mercurial repository:
hg clone -u 'last(tag())' https://forge.extranet.logilab.fr/cubicweb/cubicweb # stable version
hg clone https://forge.extranet.logilab.fr/cubicweb/cubicweb # development branch
Make sure you also have all the Installation dependencies.