Thomas Holder
2018-03-07 10:51:54 UTC
I'm trying to fully understand the new distinction between "build" and "host" requirements which was added in conda 3. After reading the documentation [1], my conclusion was that all libraries (for linking) belong into the "host" section, and all programs which are executed during building belong into "build". My questions and/or observations (with conda-build 3.2.0 on Linux):
1) python can be "build" (executed in build.sh) and "host" requirement (linking CPython extensions). Should it be listed twice? Current AnacondaRecipes don't do that.
2) $PYTHON is only defined if listed in "host". As an example, the recipe for pyqt [2] fails for that reason, it lists python in "build" and uses $PYTHON in build.sh
3) I couldn't find documentation for the "cdt()" function. The CDT packages are headers and libraries, so I would put them into "host". However, the compiler only finds those headers if listing the packages in "build".
Thanks,
Thomas
[1] https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#requirements-section
[2] https://github.com/AnacondaRecipes/pyqt-feedstock
1) python can be "build" (executed in build.sh) and "host" requirement (linking CPython extensions). Should it be listed twice? Current AnacondaRecipes don't do that.
2) $PYTHON is only defined if listed in "host". As an example, the recipe for pyqt [2] fails for that reason, it lists python in "build" and uses $PYTHON in build.sh
3) I couldn't find documentation for the "cdt()" function. The CDT packages are headers and libraries, so I would put them into "host". However, the compiler only finds those headers if listing the packages in "build".
Thanks,
Thomas
[1] https://conda.io/docs/user-guide/tasks/build-packages/define-metadata.html#requirements-section
[2] https://github.com/AnacondaRecipes/pyqt-feedstock
--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/DCF7D8A2-1927-4855-BAA4-F378D7FA8259%40schrodinger.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+***@continuum.io.
To post to this group, send email to ***@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/DCF7D8A2-1927-4855-BAA4-F378D7FA8259%40schrodinger.com.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.