Home | Download/Install | Documentation | Packages | Screenshots | News | Forum/Mailing-lists | Contact | GForge

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

download:source_distribution [2012/03/30 12:26]
user
download:source_distribution [2013/06/19 14:23] (current)
user [Building Openalea and friends and installing them for the user (recommended)]
Line 48: Line 48:
 <hidden> <hidden>
 The code is hosted on the [[http//gforge.inria.fr|INRIA's Forge]]. The code is hosted on the [[http//gforge.inria.fr|INRIA's Forge]].
-    * [[https://gforge.inria.fr/scm/?group_id=79|OpenAlea]] (1) <code>svn checkout svn://scm.gforge.inria.fr/svn/openalea/trunk openalea_tr</code> +    * [[https://gforge.inria.fr/scm/?group_id=79|OpenAlea]] (1) <code>svn checkout svn://scm.gforge.inria.fr/svn/openalea/trunk openalea</code> 
-    * [[https://gforge.inria.fr/scm/?group_id=43|VPlants]] (2) <code>svn checkout svn://scm.gforge.inria.fr/svn/vplants/vplants/trunk vplants_tr</code> +    * [[https://gforge.inria.fr/scm/?group_id=43|VPlants]] (2) <code>svn checkout svn://scm.gforge.inria.fr/svn/vplants/vplants/trunk vplants</code> 
-    * [[https://gforge.inria.fr/scm/?group_id=1107|Alinea]] (2) <code>svn checkout svn://scm.gforge.inria.fr/svn/openaleapkg/trunk openalea_tr</code>+    * [[https://gforge.inria.fr/scm/?group_id=1107|Alinea]] (2) <code>svn checkout svn://scm.gforge.inria.fr/svn/openaleapkg/trunk alinea</code>
  
 (1) Openalea is public and you are granted anonymous read-only access. To be able to commit changes, see (2).\\ (1) Openalea is public and you are granted anonymous read-only access. To be able to commit changes, see (2).\\
Line 62: Line 62:
 Dependencies of Openalea for Windows are distributed as eggs. Dependencies of Openalea for Windows are distributed as eggs.
 <box round blue 100% | installing all dependencies > <box round blue 100% | installing all dependencies >
-  - First install [[http://python.org/ftp/python/2.6/python-2.6.msi|Python 2.6]] system-wide. We consider it is installed to c:\Python26 \\ +  - First install [[http://python.org/ftp/python/2.7/python-2.7.msi|Python 2.7]] system-wide. We consider it is installed to c:\Python27 \\ 
-  - Install [[http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11.win32-py2.6.exe#md5=1509752c3c2e64b5d0f9589aafe053dc|Setuptools]]+  - Install [[http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe#md5=1509752c3c2e64b5d0f9589aafe053dc|Setuptools]]
  
 <code batch> <code batch>
-cd c:\python26\scripts+cd c:\python27\scripts
 easy_install -f http://openalea.gforge.inria.fr/pi openalea.deploy easy_install -f http://openalea.gforge.inria.fr/pi openalea.deploy
 </code> </code>
Line 101: Line 101:
 ===Linux=== ===Linux===
 <hidden> <hidden>
-On Linux systems you already probably have [[http://www.python.org/download/|Python]] installed. 
- 
-Fedora and Ubuntu developers can use the [[download:source_distribution:deploy_system_py|deploy_system.py]] script to install dependencies. 
-<box round blue 100% | installing all dependencies > 
-<code bash> 
-#Since Alinea requires VPlants and VPlants requires Openalea,  
-#requesting installation of Alinea dependencies will safely install  
-#all the dependencies of the suite. 
-sudo python openalea_0_9/deploy/src/openalea/deploy/system_dependencies/deploy_system.py alinea  
-</code> 
-</box> 
- 
-If any problem occurs with those instructions, please read: 
   - [[documentation:user:ubuntu#dependencies|ubuntu]]   - [[documentation:user:ubuntu#dependencies|ubuntu]]
-  - [[documentation:user:fedora#dependencies|Fedora]] +  - Fedora 17: \\ <box round blue 100% | Installing all dependencies ><code batch>sudo yum install python-matplotlib CGAL-devel rpy CGAL boost-math PyQt4 python-nose freeglut-devel freeglut boost-python scons gnuplot ann-devel python-fpconst bison-devel qscintilla-python SOAPpy subversion gcc-gfortran qhull qhull-devel numpy flex python-setuptools boost-devel PyOpenGL PyQt4-devel flex-static scipy readline readline-devel gcc-c++ python-imaging python-networkx bison qhull-dev sip-devel</code></box>\\ For older version of Fedora: [[documentation:user:fedora#dependencies|Fedora older]]
   - [[documentation:developper:release:linux_other#Installing the dependencies|Slackware]]   - [[documentation:developper:release:linux_other#Installing the dependencies|Slackware]]
 </hidden> </hidden>
Line 159: Line 146:
 =====Building the sources===== =====Building the sources=====
  
 +The sources can be compiled and installed system wide or only for the user. You can also consider developing in virtual python environments using [[http://virtualenv.openplans.org/|virtualenv]] (in this case, all the following commands will operate in the virtual environment).
  
-&lt;hidden We assume you have python in your path, if not click here!&gt; +Two modes of installation are described below : &quot;install&quot; and "develop"The "install" mode allows to install everything from build directoryThe &quot;develop&quotmode allows to edit the original source codeand relaunch the application without having to reinstall it.
-On most systems, Python will be correctly configured and installedOn Windows, even though Python is installed, it won't be available from the command lineConsider reading this: [[documentation:developper:release:windows#Setting_up_the_developper_environment|Setting up the environment]] +
-&lt;/hidden&gt; +
- +
-The sources can be compiled and installed system wide or only for the user. You can also consider developing in virtual python environments using [[http://virtualenv.openplans.org/|virtualenv]] (in this caseall the following commands will operate in the virtual environment).+
  
 <note tip> <note tip>
-In the following examples, the multisetup.py script calls openalea.deploy-based setup.py scripts. The options that can be passed to multisetup.py are the same as those available for [[http://docs.python.org/release/2.6.6/install/index.html#install-index|distutils]] or [[http://peak.telecommunity.com/DevCenter/EasyInstall|setuptools]] plus some new ones added by [[http://openalea.gforge.inria.fr/doc/openalea/deploy/doc/_build/html/user/manual.html|openalea.deploy]].+In the following examples, the multisetup.py script calls openalea.deploy-based setup.py scripts. The options that can be passed to multisetup.py are the same as those available for [[http://docs.python.org/release/2.7/install/index.html#install-index|distutils]] or [[http://peak.telecommunity.com/DevCenter/EasyInstall|setuptools]] plus some new ones added by [[http://openalea.gforge.inria.fr/doc/openalea/deploy/doc/_build/html/user/manual.html|openalea.deploy]]. 
 </note> </note>
  
-==== Building Openalea and friends and installing them for the user (recommended) ====+<note important> 
 +You can use setup.cfg and options.py to specify custom parameters to pass to multisetup.py or setup.py script. In each package which compilation depends on the system, there are options_XXX.py files. For example, in vplants.PlanGL, there are options_linux.py, options_macosx.py, options_windows.py, etc. Just copy the options_XXX.py the most appropriate to your system and rename it to options.py. If the default parameters does not work, and no options_XXX.py suits to your system, feel free to add your own options.py in the same directory as setup.py or multisetup.py.  
 +</note> 
 + 
 + 
 +==== Windows ==== 
 + 
 +=== Preliminaries === 
 + 
 +<hidden> 
 +On most systems, Python will be correctly configured and installed. On Windows, even though Python is installed, it won't be available from the command line. Consider reading this: [[documentation:developper:release:windows#Setting_up_the_developper_environment|Setting up the environment]] 
 +</hidden> 
 + 
 +=== Building and installing for the user (recommended) ===
  
 <note warning> If the ''--user'' option does not work, consider using a [[documentation:developper:release:windows#Setting_up_the_developper_environment|virtualenv]]. <note warning> If the ''--user'' option does not work, consider using a [[documentation:developper:release:windows#Setting_up_the_developper_environment|virtualenv]].
 </note> </note>
  
-**Linux preliminaries:**+== "install" mode == 
 <hidden> <hidden>
 +<code bash>
 +cd openalea
 +python multisetup.py install --user
 +alea_config --install-dyn-lib=%USERPROFILE%\.local\lib
 +cd ..\vplants
 +python multisetup.py install --user
 +cd ..\alinea
 +python multisetup.py install --user
 +</code>
 +</hidden>
  
 +== "develop" mode ==
 +
 +<hidden>
 +<code bash>
 +cd openalea
 +python multisetup.py develop --user
 +alea_config --install-dyn-lib=%USERPROFILE%\.local\lib
 +cd ..\vplants
 +python multisetup.py develop --user
 +cd ..\alinea
 +python multisetup.py develop --user
 +</code>
 +</hidden>
 +
 +=== Building and installing system wide ===
 +
 +<hidden>
 +<code bash>
 +cd openalea
 +[sudo] python multisetup.py install
 +cd ..\vplants
 +[sudo] python multisetup.py install
 +cd ..\alinea
 +[sudo] python multisetup.py install
 +</code>
 +</hidden>
 +
 +==== Linux ====
 +
 +=== Building and installing for the user (recommended) ===
 +
 +== Preliminaries ==
 +
 +<hidden>
 The ''--user'' option under Linux doesn't usually work out-of-the box.  The ''--user'' option under Linux doesn't usually work out-of-the box. 
-First you need to create the directories used by the option.+First you need to create the directories used by the option. 
 <code bash> <code bash>
 cd ~/.local cd ~/.local
 mkdir lib bin include   mkdir lib bin include  
 cd lib cd lib
-mkdir python2.python2.6/site-packages+mkdir python2.python2.7/site-packages
 </code> </code>
 </hidden> </hidden>
  
-\\  +== "install" mode == 
-**Common instructions:**+ 
 +<hidden>
 <code bash> <code bash>
-cd openalea_0_9+cd openalea
 python multisetup.py install --user python multisetup.py install --user
-alea_config --install-dyn-lib=${HOME}/.local/lib +alea_config --install-dyn-lib=~/.local/lib 
-cd ../vplants_0_9+cd ../vplants
 python multisetup.py install --user python multisetup.py install --user
-cd ../openaleapkg_0_9+cd ../alinea
 python multisetup.py install --user python multisetup.py install --user
 </code> </code>
 +</hidden>
  
 +== "develop" mode ==
  
-==== Building Openalea and friends and installing them system wide ====+<hidden> 
 +<code bash> 
 +cd openalea 
 +python multisetup.py develop --user 
 +alea_config --install-dyn-lib=~/.local/lib 
 +cd ../vplants 
 +python multisetup.py develop --user 
 +cd ../alinea 
 +python multisetup.py develop --user 
 +</code> 
 +</hidden> 
 + 
 +=== Building and installing system wide === 
 + 
 +<hidden>
 <code bash> <code bash>
-cd openalea_0_9+cd openalea
 [sudo] python multisetup.py install [sudo] python multisetup.py install
-alea_config --install-dyn-lib=${HOME}/.local/lib +cd ../vplants
-cd ../vplants_0_9+
 [sudo] python multisetup.py install [sudo] python multisetup.py install
-cd ../openaleapkg_0_9+cd ../alinea
 [sudo] python multisetup.py install [sudo] python multisetup.py install
 </code> </code>
 +</hidden>
  
 +==== MacOS X ====
  
-==== Building Openalea and friends and installing them in develop mode (recommended for developpers)===+=== Building and installing for the user (recommended) ===
-The sources can be compiled and installed in "develop" mode which means than you can edit the original source code, and relaunch the application without having to reinstall it. It can be combined with the ''--user'' option.+
  
 +== Preliminaries ==
 +
 +<hidden>
 +First you need to create the directories used by the option.
 <code bash> <code bash>
-cd openalea_0_9+cd ~/Library/Python/2.7 
 +mkdir lib bin include   
 +cd lib 
 +mkdir python2.7 python2.7/site-packages 
 +</code> 
 + 
 +Edit the file ~/.pydistutils.cfg  
 + 
 +<code ini> 
 +[install] 
 +prefix = ~/Library/Python/2.7 
 +</code> 
 + 
 +Then edit your ~/.profile file: 
 + 
 +<code bash> 
 +source ~/.openalea.sh 
 + 
 +export DYLD_LIBRARY_PATH=$HOME/Library/Python/2.7/lib:$DYLD_LIBRARY_PATH 
 +export PATH=$HOME/Library/Python/2.7/bin:$PATH 
 +export PYTHONPATH=$HOME/Library/Python/2.7/lib/python2.7/site-packages:$PYTHONPATH 
 +</code> 
 +</hidden> 
 + 
 +== "install" mode == 
 + 
 +<hidden> 
 +<code bash> 
 +cd openalea 
 +python multisetup.py install --user 
 +alea_config --install-dyn-lib=${HOME}/Library/Python/2.7/lib 
 +cd ../vplants 
 +python multisetup.py install --user 
 +cd ../alinea 
 +python multisetup.py install --user 
 +</code> 
 +</hidden> 
 + 
 +== "develop" mode == 
 + 
 +<hidden> 
 +<code bash> 
 +cd openalea
 python multisetup.py develop --user python multisetup.py develop --user
-alea_config --install-dyn-lib=${HOME}/.local/lib +alea_config --install-dyn-lib=${HOME}/Library/Python/2.7/lib 
-cd ../vplants_0_9+cd ../vplants
 python multisetup.py develop --user python multisetup.py develop --user
-cd ../openaleapkg_0_9+cd ../alinea
 python multisetup.py develop --user python multisetup.py develop --user
 </code> </code>
 +</hidden>
 +
 +=== Building and installing system wide ===
 +
 +<hidden>
 +<code bash>
 +cd openalea
 +[sudo] python multisetup.py install
 +cd ../vplants
 +[sudo] python multisetup.py install
 +cd ../alinea
 +[sudo] python multisetup.py install
 +</code>
 +</hidden>
 +
 +
  
  
 
download/source_distribution.1333103211.txt.gz · Last modified: 2012/03/30 12:26 by user   Back to top
INRIA   INRA     CIRAD     AGROPOLIS
INRIA GForge RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki