~ubuntu-branches/ubuntu/maverick/dolfin/maverick

« back to all changes in this revision

Viewing changes to scons/simula-scons/TODO

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2008-09-16 08:41:20 UTC
  • Revision ID: james.westby@ubuntu.com-20080916084120-i8k3u6lhx3mw3py3
Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
* Add meta-dependency package for optional dependencies, where at least one
 
2
dependency must be satisfied:
 
3
 
 
4
A-la:
 
5
 
 
6
Dependencies = ["petsc" or "umfpack", "python"]
 
7
 
 
8
meaning we want either 'petsc' or 'umfpack', but we need at least one of them
 
9
 
 
10
Proposed syntaxes
 
11
 
 
12
matrx = Alternatives('petsc','umfpack')
 
13
Dependencies = [matrix, 'numpy-1', 'ufc']
 
14
 
 
15
or 
 
16
 
 
17
matrix = Dependency("petsc", "umfpack", type="any")
 
18
 -> type can be 'any' or 'all', defaults to 'all'
 
19
Again, we put matrix in the Dependencies list
 
20
 
 
21
We also need to set HAVE_<PACKAGE> flags accordingly
 
22