Skip to content

Commit

Permalink
conda: use new noarch system
Browse files Browse the repository at this point in the history
sbourdeauducq committed Jun 28, 2017
1 parent b1704cf commit 7d9a313
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions conda/misoc/meta.yaml
Original file line number Diff line number Diff line change
@@ -5,11 +5,20 @@ package:
source:
git_url: ../..

{% set data = load_setup_py_data() %}

build:
noarch_python: true
noarch: python
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
script: python setup.py install
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_FULL_HASH", "")[:8] }}
entry_points:
# NOTE: conda-build cannot distinguish between console and gui scripts
{% for entry_point_type, entry_points in data.get("entry_points", dict()).items() -%}
{% for entry_point in entry_points -%}
- {{ entry_point }}
{% endfor %}
{% endfor %}
script: $PYTHON setup.py install --single-version-externally-managed --record=record.txt

requirements:
build:

0 comments on commit 7d9a313

Please sign in to comment.