update recipe: for missing requirements.txt
@@ -13,7 +13,17 @@ source:
build:
number: 0
noarch: python
- script: {{ PYTHON }} -m pip install . -vv
+ script:
+ ## Ensure inclusion of requirements.txt
+ {% set reqfile = "requirements.txt" %}
+ {% set reqsource = name ~ ".egg-info/requires.txt" %}
+ # IF {{ reqfile }} is NOT PRESENT, COPY {{ reqfile }} from {{ reqsource }}
+ - echo -e "\n>>> ENSURE INCLUSION OF '{{ reqfile }}' <<<\n\n"
+ - if [ ! -f {{ reqfile }} ] && [ -f {{ reqsource }} ]; then cp {{ reqsource }} {{ reqfile }}; fi # [not win]
+ #- copy {{ name }}.egg-info\requires.txt {{ reqfile }} # [win]
+ - copy {{ reqsource | replace('/', '\\') }} {{ reqfile }} # [win]
+ ## Install package {{ name }} from PyPI
+ - {{ PYTHON }} -m pip install . -vv
requirements:
host:
