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

Create conda packages #1505

Closed
floriangc opened this issue Apr 19, 2021 · 15 comments
Closed

Create conda packages #1505

floriangc opened this issue Apr 19, 2021 · 15 comments
Assignees
Labels
task A task to perform
Milestone

Comments

@floriangc
Copy link

Hello,

Is it planned to have a conda package for dolfinx ?
Or is it to early and dolfinx is not stable enough ?

Thanks !

@garth-wells
Copy link
Member

We're planning to tag an alpha release in the coming days. A conda package would be welcome but we don't have the expertise to create and maintain a package. We'd need volunteers with experience.

@floriangc
Copy link
Author

I have a small experience on building conda package and releasing it on conda-forge. I could give it a try, starting from what has been done for the conda-forge recipe of fenics.

@astrojuanlu
Copy link

I made the original fenics-recipes 6 years ago before conda-forge existed, it's been quite some time but would be happy to lend a hand as well :)

@floriangc
Copy link
Author

I didnt had much time lately to work on this but there is a repo where I started working: https://github.com/floriangc/dolfinx-recipe

I managed to go through all the different dependencies of dolfinx (ufl, basix, ffcx). But it was 2 month ago and apparently numba was added to basix deps and the tests dont pass anymore.

@mscroggs
Copy link
Member

The numba requirement for Basix should be optional (it's only used if you want to import basix.numba_helpers which are helper functions for writing custom DOLFINx kernels). I've made these tests skip if numba isn't installed in FEniCS/basix#273

@garth-wells garth-wells added the task A task to perform label Oct 5, 2021
@garth-wells garth-wells added this to the V0.5 milestone Nov 18, 2021
@garth-wells garth-wells changed the title Dolfinx conda package ? Create conda packages Apr 4, 2022
@garth-wells
Copy link
Member

Conda package have been created by @minrk, see

@minrk
Copy link
Contributor

minrk commented Jun 7, 2022

Completed ARM builds for mac and linux over the weekend: conda install -c conda-forge mpich fenics-dolfinx, if anyone would like to test them out / give feedback on dependencies, etc.

@kdanas
Copy link

kdanas commented Jul 12, 2022

Hi. I am very inexperienced to FEniCS. I was using it for 2 years to teach. I have tried to install FEnics in my new Mac M1 Pro and while I install (using an environment) a number of packages (gmsh, pygmsh, jupyter, matplotlib etc...) when I use the prefix:

channels:

  • conda-forge
  • defaults

dependencies:

  • fenics-dolfinx

It does not work. It gives the error" Collecting package metadata (repodata.json): failed"

Si vous avez une idée.

@RemDelaporteMathurin
Copy link

Bonjour,

May be related to a conda bug.

See conda-forge/fenics-feedstock#162 (comment)

A workaround would be to first install mamba, then install fenics (or dolfinx)

@kdanas
Copy link

kdanas commented Jul 12, 2022

Ok thanks. I have to reinstall everything. There are many conflicts. It would be great if this problem is fixed.

@RemDelaporteMathurin
Copy link

RemDelaporteMathurin commented Jul 12, 2022

It would be great if this problem is fixed.

It's being worked on conda/conda#11612

@kdanas
Copy link

kdanas commented Jul 12, 2022

Great. It is a matter of time then. I will try again later this week.

@jhale
Copy link
Member

jhale commented Jul 12, 2022

Having tried the conda builds on M1 in the past I can confirm that they work very well indeed, so I'd strongly recommend them once the issue in conda is fixed.

It is also 'relatively easy' to build FEniCSx on Mac taking all dependencies (MPI, PETSc, HDF5, Python etc.) from Homebrew.

@minrk
Copy link
Contributor

minrk commented Jul 13, 2022

The petsc metadata error has been fixed.

@kdanas
Copy link

kdanas commented Jul 16, 2022

Many thanks! The conda is now working for me. I will keep you posted if I find other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task A task to perform
Projects
None yet
Development

No branches or pull requests

9 participants