Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make embarrassingly parallelizable builds build in parallel #121

Open
jondequinor opened this issue Jun 25, 2020 · 0 comments
Open

Make embarrassingly parallelizable builds build in parallel #121

jondequinor opened this issue Jun 25, 2020 · 0 comments
Labels
christmas-review Issues and PRs for Christmas review enhancement major-refactor

Comments

@jondequinor
Copy link
Contributor

jondequinor commented Jun 25, 2020

Make embarrassingly parallelizable builds build in parallel. This means that for each level in the dependency graph, all nodes at this level should be built in parallel.

This means that if the graph looks like this:

                  python
                    / \
                   /   \
                  /     \
                 /       \
           setuptools   wheel
               / \        /\
              /   \      /  \
             /     \    /    \
            /       \  /      \
           /         \/        \
     contextlib2  cachetools  enum34

three batches of build will occur:

  1. python
  2. setuptools and wheel
  3. contextlib2, cachetools and then enum34

etc.

If, for any reason, some build is not parallelizable, it should be explicitly marked as such in repository.yml.

pyscal:
  v0.5.1:
    source: git://github.com/equinor/pyscal
    fetch: git
    make: sh
    makefile: src/setup-py.sh
    maintainer: havb
    depends:
      - numpy
      - pandas
      - python
      - …
    build_isolation: yes

So, if a package is for some reason not possible to build in parallel with other packages, it can get build_isolation—which currently means that it is built not in parallel with other packages.

@eivindjahren eivindjahren added the christmas-review Issues and PRs for Christmas review label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
christmas-review Issues and PRs for Christmas review enhancement major-refactor
Projects
None yet
Development

No branches or pull requests

2 participants