Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C3B042007D1 for ; Thu, 12 May 2016 22:51:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C2782160939; Thu, 12 May 2016 20:51:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 14CB21602BF for ; Thu, 12 May 2016 22:51:09 +0200 (CEST) Received: (qmail 37857 invoked by uid 500); 12 May 2016 20:51:09 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 37844 invoked by uid 99); 12 May 2016 20:51:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2016 20:51:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DD654DFA1E; Thu, 12 May 2016 20:51:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: swill@apache.org To: commits@cloudstack.apache.org Date: Thu, 12 May 2016 20:51:08 -0000 Message-Id: <4c8b8fa5e74b4ee39bed35cc55b5dcf8@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: updated refs/heads/master to 9320f85 archived-at: Thu, 12 May 2016 20:51:11 -0000 Repository: cloudstack Updated Branches: refs/heads/master 8c3722d95 -> 9320f858f CLOUDSTACK-9334: Support jenv and pyenv to manage Java and Python versions * Adds .java-version to specify Java 1.7 as the JDK version to use for CloudStack development. * Adds .python-vresion to specify Python 2.7.11 as the Python to use for CloudStack development. * Adds requirements.txt to specify the default dependencies used for CloudStack development. It does not include Marvin's dependencies because it's bundle already defines the dependencies which are installed with Marvin. * Adds .java-version and .python-version to the RAT excludes because neither jenv or pyenv support comments in these files * Updates INSTALL.md to explain how to utilize jenv and pyenv for CloudStack development Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7add16d3 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7add16d3 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7add16d3 Branch: refs/heads/master Commit: 7add16d3d9c06d3a806c165559601056a6269e0e Parents: 0dcaf19 Author: John Burwell Authored: Sat Apr 2 18:31:08 2016 -0400 Committer: John Burwell Committed: Thu Apr 14 14:26:29 2016 -0400 ---------------------------------------------------------------------- .java-version | 1 + .python-version | 1 + INSTALL.md | 17 +++++++++++++++++ pom.xml | 2 ++ requirements.txt | 21 +++++++++++++++++++++ 5 files changed, 42 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7add16d3/.java-version ---------------------------------------------------------------------- diff --git a/.java-version b/.java-version new file mode 100644 index 0000000..d3bdbdf --- /dev/null +++ b/.java-version @@ -0,0 +1 @@ +1.7 http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7add16d3/.python-version ---------------------------------------------------------------------- diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..5643833 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +cloudstack http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7add16d3/INSTALL.md ---------------------------------------------------------------------- diff --git a/INSTALL.md b/INSTALL.md index 9924ba9..8a83fb0 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -38,6 +38,23 @@ Start the MySQL service: $ service mysqld start +### Using jenv and/or pyenv for Version Management + +CloudStack is built using Java and Python. To make selection of these tools versions more consistent and ease installation for developers, optional support for [jenv](http://www.jenv.be/) and [pyenv](https://github.com/yyuu/pyenv) with [virtualenv]|(https://github.com/yyuu/pyenv-virtualenv) is provided. jenv installation instructions are available here and pyenv installation instructions are available here. For users of [oh-my-zsh](http://ohmyz.sh/) there is a pyenv plugin available to trigger configuration of pyenv in a shell session. + +Following installation, execute the following commands to configure jenv and pyenv for use with CloudStack development: + +''' + # pyenv install 2.7.11 # Install Python 2.7.11 + # pyenv virtualenv 2.7.11 cloudstack # Create a cloidstack virtualenv using Python 2.7.11 + # pip install -r /requirements.txt # Install cloudstack Python dependencies + # jenv add # Add Java7 to jenv +''' + +*N.B.* If you are running Linux, you may need to install additional packages to allow pyenv to build Python. + +Following these steps, jenv and pyenv will use .java-version and .python-version files in the root of the CloudStack source tree to switch to the correct Java version and the cloudstack Python virtualenv for CloudStack development. + ## Getting the Source Code You may get the source code from the repository hosted on Apache: http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7add16d3/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index c18c377..724aeb1 100644 --- a/pom.xml +++ b/pom.xml @@ -756,6 +756,8 @@ CONTRIBUTING.md tools/docker/Dockerfile tools/docker/supervisord.conf + .java-version + .python-version .idea/ **/*.log **/*.patch http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7add16d3/requirements.txt ---------------------------------------------------------------------- diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f5c7666 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,21 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Install the latest version of cloudmonkey +cloudmonkey + +# Marvin dependencies are installed via its bundle