Skip to content

Commit b2ca9fe

Browse files
committed
Added Marvin building docs to dev guide
2 parents 2bc3b5c + 5f19c45 commit b2ca9fe

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

docs/en-US/building-marvin.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version='1.0' encoding='utf-8' ?>
2+
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
3+
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
4+
%BOOK_ENTITIES;
5+
]>
6+
7+
<!-- Licensed to the Apache Software Foundation (ASF) under one
8+
or more contributor license agreements. See the NOTICE file
9+
distributed with this work for additional information
10+
regarding copyright ownership. The ASF licenses this file
11+
to you under the Apache License, Version 2.0 (the
12+
"License"); you may not use this file except in compliance
13+
with the License. You may obtain a copy of the License at
14+
15+
http://www.apache.org/licenses/LICENSE-2.0
16+
17+
Unless required by applicable law or agreed to in writing,
18+
software distributed under the License is distributed on an
19+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
KIND, either express or implied. See the License for the
21+
specific language governing permissions and limitations
22+
under the License.
23+
-->
24+
25+
<section id="building-marvin">
26+
<title>Building and Installing Marvin</title>
27+
<para>Marvin is built with Maven and is dependent on APIdoc. To build it do the following in the root tree of &PRODUCT;:</para>
28+
<programlisting>mvn -P developer -l :cloud-apidoc</programlisting>
29+
<programlisting>mvn -P developer -l :cloud-marvin</programlisting>
30+
<para>If successfull the build will have created the cloudstackAPI Python package under tools/marvin/marvin/cloudstackAPI as well as a gziped Marvin package under tools/marvin dist. To install the Python Marvin module do the following in tools/marvin:</para>
31+
<programlisting>sudo python ./setup.py install</programlisting>
32+
<para>The dependencies will be downloaded the Python module installed and you should be able to use Marvin in Python. Check that you can import the module before starting to use it.</para>
33+
<programlisting>$ python
34+
Python 2.7.3 (default, Nov 17 2012, 19:54:34)
35+
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
36+
Type "help", "copyright", "credits" or "license" for more information.
37+
>>> import marvin
38+
>>> from marvin.cloudstackAPI import *
39+
>>> </programlisting>
40+
41+
<para>You could also install it using <emphasis>pip</emphasis> or <emphasis>easy_install</emphasis> using the local distribution package in tools/marvin/dist :</para>
42+
<programlisting>pip install tools/marvin/dist/Marvin-0.1.0.tar.gz</programlisting>
43+
<para>Or:</para>
44+
<programlisting>easy_install tools/marvin/dist/Marvin-0.1.0.tar.gz</programlisting>
45+
46+
</section>

docs/en-US/marvin.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@
2929
<para>Marvin's complete documenation is on the wiki at <ulink url="https://cwiki.apache.org/CLOUDSTACK/testing-with-python.html">https://cwiki.apache.org/CLOUDSTACK/testing-with-python.html</ulink></para>
3030
<para>The source code is located at <emphasis>tools/marvin</emphasis></para>
3131
</note>
32+
<xi:include href="building-marvin.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
3233
</section>

0 commit comments

Comments
 (0)