noarch: python
packages are typically build on Linux, thus the contained entrypoints won't work on Windows.
Trying to build a recipe with several subpackages. Using:
outputs:
- name: taurus-core
script: "{{ PYTHON }} -m pip install . --no-deps -vv"
build:
noarch: python
Gives me:
INFO conda_build.metadata:finalize_outputs_pass(748): Attempting to finalize metadata for taurus-core
Error: Failed to render jinja template in /home/conda/staged-recipes-copy/recipes/taurus/meta.yaml:
'PYTHON' is undefined
Is this expected? External script has to be used? Or is that a conda-build bug?
Looking at the warning above:
WARNING conda_build.metadata:_get_used_vars_output_script(2312): Not detecting used variables in output script /home/conda/staged-recipes/build_artifacts/taurus_1611351737826/_h_env_placehold_..._placehold_plac/bin/python -m pip install . --no-deps -vv;
conda-build only knows how to search .sh and .bat files right now.
And reading the documentation again:
Scripts that create or move files into the build prefix can be any kind of script. Known script types need only specify the script name.
It sounds like in outputs, script
has to be a file. It can't be a command. Or I'm missing something?
script:
commands:
- echo blah
requirements:
host:
- python
- pip
- setuptools
run:
- knobs
- pywin32
- typer
knobs
is a package I also built
conda install -c local mypkg
conda build purge-all
conda-build
may implicitly use local
.
# [unix]
dependencies still. I think I may be creating the windows package incorreectly though. I'm using conda convert ... -p win-64
which outputs the package, but seemingly the contents of that still seem to mention that it requires the unix dependency. Any suggestiosn where I'm going wrong?