Skip to content
Snippets Groups Projects
Commit 1dc5cf5f authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[conda] Re-use project_dir

parent 0ae1e814
No related branches found
No related tags found
No related merge requests found
Pipeline #25703 failed
{% set name = 'bob.devtools' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package:
name: {{ name }}
......@@ -11,12 +12,13 @@ build:
run_exports:
- {{ pin_subpackage(name) }}
script:
- cd {{ environ.get('RECIPE_DIR') + '/..' }}
- cd {{ project_dir }}
{% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip
{% endif %}
- python setup.py install --single-version-externally-managed --record record.txt
# installs the documentation source, readme and license to share/doc
# so it is available during test time
- install -d ${PREFIX}/share/doc/{{ name }}
- install -m 644 -D README.rst ${PREFIX}/share/doc/{{ name }}
- install -m 644 -D LICENSE ${PREFIX}/share/doc/{{ name }}
......@@ -51,7 +53,7 @@ test:
- bdt lasttag --help
- bdt changelog --help
- bdt release --help
- sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc {{ environ.get('RECIPE_DIR') + '/../sphinx' }}
- sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc {{ project_dir }}/sphinx
about:
home: https://www.idiap.ch/software/bob/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment