forked from M-Labs/artiq
1
0
Fork 0

conda: use new noarch system

This commit is contained in:
Sebastien Bourdeauducq 2017-06-05 21:34:28 +08:00
parent 7f2f0031d6
commit 5a134c82c5
4 changed files with 34 additions and 29 deletions

View File

@ -6,7 +6,7 @@ source:
git_url: ../.. git_url: ../..
build: build:
noarch_python: true noarch: python
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }} number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_FULL_HASH", "")[:8] }} string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_FULL_HASH", "")[:8] }}

View File

@ -1,5 +0,0 @@
#!/bin/bash
ARTIQ_PREFIX=$PREFIX/lib/python3.5/site-packages/artiq
$PYTHON setup.py install --single-version-externally-managed --record=record.txt

View File

@ -5,10 +5,20 @@ package:
source: source:
git_url: ../.. git_url: ../..
{% set data = load_setup_py_data() %}
build: build:
noarch_python: true noarch: python
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }} number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_FULL_HASH", "")[:8] }} 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: requirements:
build: build:

View File

@ -20,32 +20,32 @@ requirements = [
] ]
console_scripts = [ console_scripts = [
"artiq_client=artiq.frontend.artiq_client:main", "artiq_client = artiq.frontend.artiq_client:main",
"artiq_compile=artiq.frontend.artiq_compile:main", "artiq_compile = artiq.frontend.artiq_compile:main",
"artiq_coreanalyzer=artiq.frontend.artiq_coreanalyzer:main", "artiq_coreanalyzer = artiq.frontend.artiq_coreanalyzer:main",
"artiq_coreconfig=artiq.frontend.artiq_coreconfig:main", "artiq_coreconfig = artiq.frontend.artiq_coreconfig:main",
"artiq_corelog=artiq.frontend.artiq_corelog:main", "artiq_corelog = artiq.frontend.artiq_corelog:main",
"artiq_coreboot=artiq.frontend.artiq_coreboot:main", "artiq_coreboot = artiq.frontend.artiq_coreboot:main",
"artiq_ctlmgr=artiq.frontend.artiq_ctlmgr:main", "artiq_ctlmgr = artiq.frontend.artiq_ctlmgr:main",
"artiq_devtool=artiq.frontend.artiq_devtool:main", "artiq_devtool = artiq.frontend.artiq_devtool:main",
"artiq_influxdb=artiq.frontend.artiq_influxdb:main", "artiq_influxdb = artiq.frontend.artiq_influxdb:main",
"artiq_master=artiq.frontend.artiq_master:main", "artiq_master = artiq.frontend.artiq_master:main",
"artiq_mkfs=artiq.frontend.artiq_mkfs:main", "artiq_mkfs = artiq.frontend.artiq_mkfs:main",
"artiq_session=artiq.frontend.artiq_session:main", "artiq_session = artiq.frontend.artiq_session:main",
"artiq_rpctool=artiq.frontend.artiq_rpctool:main", "artiq_rpctool = artiq.frontend.artiq_rpctool:main",
"artiq_run=artiq.frontend.artiq_run:main", "artiq_run = artiq.frontend.artiq_run:main",
"artiq_flash=artiq.frontend.artiq_flash:main", "artiq_flash = artiq.frontend.artiq_flash:main",
"aqctl_lda=artiq.frontend.aqctl_lda:main", "aqctl_lda = artiq.frontend.aqctl_lda:main",
"aqctl_novatech409b=artiq.frontend.aqctl_novatech409b:main", "aqctl_novatech409b = artiq.frontend.aqctl_novatech409b:main",
"aqctl_korad_ka3005p=artiq.frontend.aqctl_korad_ka3005p:main", "aqctl_korad_ka3005p = artiq.frontend.aqctl_korad_ka3005p:main",
"aqctl_pdq=artiq.frontend.aqctl_pdq:main", "aqctl_pdq = artiq.frontend.aqctl_pdq:main",
"aqctl_thorlabs_tcube=artiq.frontend.aqctl_thorlabs_tcube:main", "aqctl_thorlabs_tcube = artiq.frontend.aqctl_thorlabs_tcube:main",
] ]
gui_scripts = [ gui_scripts = [
"artiq_browser=artiq.frontend.artiq_browser:main", "artiq_browser = artiq.frontend.artiq_browser:main",
"artiq_dashboard=artiq.frontend.artiq_dashboard:main", "artiq_dashboard = artiq.frontend.artiq_dashboard:main",
] ]
setup( setup(