edit name pt.darts to darts
{% set version = "0.2" %}
package:
- name: darts
+ name: {{ name.replace("pt.", "") }}
version: {{ version }}
source:
@@ -12,8 +12,8 @@ source:
build:
number: 0
script:
- - cp -r $SRC_DIR $SP_DIR/{{ name }} # [not win]
- - cp -r %SRC_DIR% %SP_DIR\{{ name }} # [win]
+ - cp -r $SRC_DIR $SP_DIR/{{ name.replace("pt.", "") }} # [not win]
+ - copy %SRC_DIR% %SP_DIR\{{ name.replace("pt.", "") }} # [win]
requirements:
host:
@@ -23,11 +23,13 @@ requirements:
- numpy
- graphviz
- pytorch >=0.4.1
- - torchvision
+ - torchvision # [unix]
- tensorboard
- tensorboardx
test:
+ imports:
+ - darts
commands:
- test -f $SP_DIR/pt.darts/visualize.py # [unix]
- if not exist %SP_DIR%\pt.darts\visualize.py exit 1 # [win]
