Package conary :: Package build :: Module packagerecipe :: Class PackageRecipe
[hide private]
[frames] | no frames]

Class PackageRecipe

source code

       object --+        
                |        
    recipe.Recipe --+    
                    |    
AbstractPackageRecipe --+
                        |
                       PackageRecipe
Known Subclasses:
BuildPackageRecipe, explain.DummyPackageRecipe

NAME

PackageRecipe - Base class which provides Conary functionality

SYNOPSIS

PackageRecipe is inherited by the other *PackageRecipe super classes

DESCRIPTION

The PackageRecipe class provides Conary recipes with references to the essential troves which offer Conary's packaging requirements. (python, sqlite, gzip, bzip2, tar, cpio, and patch)

Other PackageRecipe classes such as AutoPackageRecipe inherit the functionality offered by PackageRecipe.

EXAMPLE

A sample class that uses PackageRecipe to download source code from a web site, unpack it, run "make", then run "make install":
   class ExamplePackage(PackageRecipe):
       name = 'example'
       version = '1.0'

       def setup(r):
           r.addArchive('http://code.example.com/example/')
           r.Make()
           r.MakeInstall()


Nested Classes [hide private]

Inherited from AbstractPackageRecipe: basePolicyClass

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code

Inherited from AbstractPackageRecipe: __delattr__, byDefault, checkBuildRequirements, cleanup, disableParallelMake, doBuild, extraBuild, getBuildRequirementTroves, getCrossRequirementTroves, getDerivedFrom, getPackages, getRecursiveBuildRequirements, getRepos, getSubscribeLogPath, glob, isCrossCompileTool, isCrossCompiling, isatty, iterResumeList, loadSourceActions, mainDir, nameVer, needsCrossFlags, processResumeList, regexp, setByDefaultOff, setByDefaultOn, setCrossCompile, setDerivedFrom, setRepos, setupAbstractBaseClass, subscribeLogs, synchronizeLogs, validate

Inherited from recipe.Recipe: __getattr__, __repr__, doProcess, extraSource, fetchAllSources, fetchLocalSources, getSourcePathList, loadPolicy, move, populateLcache, prepSources, recordCalls, recordMove, sourceMap, unpackSources

Inherited from object: __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Methods [hide private]

Inherited from recipe.Recipe: getType, validateClass

Class Variables [hide private]
  internalAbstractBaseClass = 1
  name = 'package-recipe'
  buildRequires = ['filesystem:runtime', 'setup:runtime', 'pytho...

Inherited from AbstractPackageRecipe: Flags, buildRequirementsOverride, crossRequirementsOverride, crossRequires, explicitMainDir, internalPolicyModules

Inherited from AbstractPackageRecipe (private): _derivedFrom, _recipeType

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Overrides: AbstractPackageRecipe.__init__

Class Variable Details [hide private]

buildRequires

Value:
['filesystem:runtime',
 'setup:runtime',
 'python:runtime',
 'python:lib',
 'conary:runtime',
 'conary:python',
 'conary-build:runtime',
 'conary-build:lib',
...