Commit 88901d9d authored by Manuel Günther's avatar Manuel Günther

Fixed the PythonFaceEvaluation directory to be used directly in buildout.cfg...

Fixed the PythonFaceEvaluation directory to be used directly in buildout.cfg (and not its parent directory)
parent c0b9df4e
......@@ -25,7 +25,7 @@ install:
- mkdir PythonFaceEvaluation
- wget https://www.idiap.ch/software/bob/databases/latest/PythonFaceEvaluation.tar.bz2
- tar -xjf PythonFaceEvaluation.tar.bz2 -C PythonFaceEvaluation
- ./bin/patch_CSU.py .
- ./bin/patch_CSU.py PythonFaceEvaluation
- ./bin/buildout buildout:develop="PythonFaceEvaluation ." buildout:extensions=bob.buildout buildout:auto-checkout= buildout:debug=false
script:
- ./bin/python -c 'import pkg_resources; from bob.bio.csu import get_config; print(get_config())'
......
......@@ -37,7 +37,7 @@ develop = src/bob.extension
src/bob.learn.boosting
src/bob.ip.facedetect
src/bob.ip.flandmark
${buildout:csu-dir}/PythonFaceEvaluation
${buildout:csu-dir}
.
csu-dir = [PATH_TO_YOUR_CSU_COPY]
......
......@@ -34,9 +34,9 @@ def main():
raise ValueError("The given directory '%s' does not exist." % sys.argv[1])
base_dir = os.path.join(sys.argv[1], 'PythonFaceEvaluation')
base_dir = sys.argv[1]
if not os.path.isdir(base_dir):
raise IOError("The given directory '%s' does not contain a 'PythonFaceEvaluation' subdirectory. Please specify the base directory of the PythonFaceEvaluation toolkit." % sys.argv[1])
raise IOError("The given directory '%s' does not exist. Please specify the directory of the PythonFaceEvaluation toolkit." % sys.argv[1])
if os.path.isfile(os.path.join(base_dir, 'setup.py')):
raise IOError("The given directory '%s' already seems to be patched." % sys.argv[1])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment