Skip platforms on conda-build

0 views
Skip to first unread message

Robert McGibbon

unread,
May 10, 2015, 4:59:04 PM5/10/15
to co...@continuum.io
Hi,

It would be useful to add an optional field to the conda-build meta.yaml schema to declare that a certain package is should not be built with a
particular platform (e.g. py34, or win-32, etc). Currently, this can be effectuated by putting this logic inside the build.sh/bld.bat files -- for example
by writing 'exit 1' in the bld.bat files to prevent the package from being built on windows -- but this has some disadvantages. In particular, if the
package has many dependencies that need to be downloaded from the web or unpacked, all of this downloading happens before the bld.bat
file is run, so there's a big waste of time.

Adding an optional field to the meta.yaml schema that permitted certain platforms or versions of python to be "blacklisted" would avoid this
headache.

```
# meta.yaml

build:
  skip: win-32, win-64
```

Thoughts?

-Robert

Carlos Córdoba

unread,
May 11, 2015, 1:28:00 PM5/11/15
to co...@continuum.io
Hi,

I think the proper way for you to do this is to open a pull request, or at least an issue, in the conda-build repo on Github. This way it'll be easier to discuss if it's feasible or not.


Cheers,
Carlos

El 10/05/15 a las 15:59, Robert McGibbon escribió:
--
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+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at http://groups.google.com/a/continuum.io/group/conda/.

Robert McGibbon

unread,
May 11, 2015, 4:16:29 PM5/11/15
to co...@continuum.io
Hi,

Sounds good. I implemented the feature in a PR

Aaron Meurer

unread,
May 11, 2015, 4:17:08 PM5/11/15
to Robert McGibbon, conda
I've done this by using selectors to delete some required field (like
the package name), but it doesn't provide a very helpful error
message.

Aaron Meurer
Reply all
Reply to author
Forward
0 new messages