diff options
author | Jeremy Blosser | 2006-04-24 15:42:09 -0500 |
---|---|---|
committer | Jeremy Blosser | 2006-04-24 15:42:09 -0500 |
commit | fbac52f062c6d82ac42888e911bafcb3667f6ea4 (patch) | |
tree | b0b3769a4ebc723de42a17a0c323334ba4271acc /FUNCTIONS | |
parent | 20e87ca69abcf84ab741f8c7a45844c1c6cf0f25 (diff) |
sync ./FUNCTIONS from stable-rc 0.4
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -383,3 +383,19 @@ function unpack_file() { message "This spell uses a function only available in sorcery 1.12.2 or newer, please update." return 1 } + +#------------------------------------------------------------------------- +## Default build for Python spell. +#------------------------------------------------------------------------- +function default_build_python() { + python setup.py build +} + +#------------------------------------------------------------------------- +## Default install for Python spell. +## INSTALL_ROOT is used here only if not empty, because some spells can't +## install with "--root '/'" option. +#------------------------------------------------------------------------- +function default_install_python() { + python setup.py install ${INSTALL_ROOT:+--root "$INSTALL_ROOT/"} +} |