Home | Download/Install | Documentation | Packages | Screenshots | News | Forum/Mailing-lists | Contact | GForge
Authors : S. Dufour-Kowalski
Contributors : OpenAlea Consortium
Institutes : INRIA/CIRAD/INRA
Type : Pure Python package
Status : Devel
License : CeCILL-C
OpenAlea.Deploy support the installation of OpenAlea packages via the network and manage their dependencies . It is an extension of Setuptools.
Additional Features :
It doesn't include any GUI interface (See OpenAlea.DeployGui for that).
See the Download page.
python setup.py install
Note : OpenAlea.Deploy can be automatically installed with the alea_setup.py script.
API documentation
To distribute your package with OpenAlea.Deploy, you need to write a setup.py script as you do with setuptools.
build_prefix=…
def install():
.python setup.py create_namespace
.python setup.py scons
.python setup.py alea_install
.
For more information see : python setup.py –help-commands
import sys import os from setuptools import setup, find_packages from os.path import join as pj build_prefix = "build-scons" # Setup function setup( name = "OpenAlea.FakePackage", version = "0.1", author = "Me", author_email = "me@example.com", description = "This is an Example Package", license = 'GPL', keywords = 'fake', url = 'http://myurl.com', # Scons scons_scripts = ["SConstruct"], scons_parameters = ["build_prefix=%s"%(build_prefix)], # Packages namespace_packages = ["openalea"], create_namespaces = True, packages = ['openalea.fakepackage', ], package_dir = { 'openalea.fakepackage': pj('src','fakepackage'), '' : 'src', # necessary to use develop command }, include_package_data = True, zip_safe= False, # Specific options of openalea.deploy lib_dirs = { 'lib' : pj(build_prefix, 'lib'), }, inc_dirs = { 'include' : pj(build_prefix, 'include') }, share_dirs = { 'share' : 'share' }, postinstall_scripts = ['openalea.fakepackage.postinstall',], # Scripts entry_points = { 'console_scripts': [ 'fake_script = openalea.fakepackage.amodule:console_script', ], 'gui_scripts': [ 'fake_gui = openalea.fakepackage.amodule:gui_script',]}, # Dependencies setup_requires = ['openalea.deploy'], dependency_links = ['http://openalea.gforge.inria.fr/pi'], #install_requires = [], )