summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorJeremy Blosser2006-04-24 15:42:09 -0500
committerJeremy Blosser2006-04-24 15:42:09 -0500
commitfbac52f062c6d82ac42888e911bafcb3667f6ea4 (patch)
treeb0b3769a4ebc723de42a17a0c323334ba4271acc /FUNCTIONS
parent20e87ca69abcf84ab741f8c7a45844c1c6cf0f25 (diff)
sync ./FUNCTIONS from stable-rc 0.4
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS16
1 files changed, 16 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 5d7062bd64..dbdff2c13d 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -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/"}
+}