Skip to content

Conversation

@UZerbinati
Copy link
Contributor


name: "Bug fix or new feature"
description: ''
title: ''
labels: ''
assignees: ''


Description

Please include a summary of the changes introduced by this PR.
Additionally include any relevant motivation and context. List any
dependencies that are required for this change, other PRs upon
which this may depend, and associated issues.

Associated Pull Requests:

Fixes Issues:

If issues are fixed by this PR, prepend each of them with the word
"fixes", so they are automatically closed when this PR is merged. For
example "fixes #123, fixes #456".

Checklist for author:

  • I have linted the codebase (make lint in the firedrake source directory).
  • My changes generate no new warnings.
  • All of my functions and classes have appropriate docstrings.
  • I have commented my code where its purpose may be unclear.
  • I have included and updated any relevant documentation.
  • Documentation builds locally (make linkcheck; make html; make latexpdf in firedrake/docs directory)
  • I have added tests specific to the issues fixed in this PR.
  • I have added tests that exercise the new functionality I have introduced
  • Tests pass locally (pytest tests in the firedrake source directory) (useful, but not essential if you don't have suitable hardware).
  • I have performed a self-review of my own code using the below guidelines.

Checklist for reviewer:

  • Docstrings present
  • New tests present
  • Code correctly commented
  • No bad "code smells"
  • No issues in parallel
  • No CI issues (excessive parallelism/memory usage/time/warnings generated)
  • Upstream/dependent branches and PRs are ready

Feel free to add reviewers if you know there is someone who is already aware of this work.

Please open this PR initially as a draft and mark as ready for review once CI tests are passing.

Signed-off-by: Umberto Zerbinati <umberto.zerbinati@maths.ox.ac.uk>
run_pip(["install", "ngsolve", "--pre"])
log.info("Installing scikit-build.")
run_pip(["install", "-U", "scikit-build"])
log.info("Installing Netgen, it may take an hour or more to build!")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems bad.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ? Because we are building Netgen from source ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think more because building Netgen for an hour is going to significantly slow down CI

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also it's going to properly irritate users. If this is as big as this and you need a branch, I think you need to provide wheels.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do mean you need a branch? I'm not familiar with wheels I'll start looking into it :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 1422 appears to indicate that you're doing this because you need your fork of netgen rather than the version on PyPI.

The version on PyPI will be compiled python packages, which are called wheels. If it takes this long to build netgen then you need to compile your own Python packages and use them. Netgen is already set up as a Python package, so building the wheels should be easy (see https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-archives)

You can either put these packages on PyPI under an alternative name, or you can make a release of your project on GitHub and grab the wheels from there. You can look at how we deal with vtk in the install script as an example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll start looking into this immediately.

Signed-off-by: Umberto Zerbinati <umberto.zerbinati@maths.ox.ac.uk>
@UZerbinati UZerbinati closed this Oct 12, 2023
@UZerbinati UZerbinati deleted the uzerbinati/ngsPETScInstall branch October 12, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for local_range

4 participants