Git Product home page Git Product logo

Comments (7)

sshiraiwa avatar sshiraiwa commented on August 18, 2024

Hi @jan-janssen, I didn't use PyMFEM with conda mfem. Is it install a pre-compiled binary or source code?
If so, setup.py takes --mfem-prefix --mfem-source as parameters. With pip, you need to use --install-option.
to set each of these parameters. If you want to compile it with MPI, you also give --with-parallel, --hypre-prefix
and --metis-prefix.

from pymfem.

jan-janssen avatar jan-janssen commented on August 18, 2024

I am a bit confused, I have the libmfem.so installed on my system. I am just looking for the pip command to link to this already installed version.

from pymfem.

sshiraiwa avatar sshiraiwa commented on August 18, 2024

Setup.py in PyMFEM generates a wrapper code from the MFEM source code. MFEM can be compiled with various options.
Depending the option you use, the wrapper code has to change. Therefore, if you have only libmfem.so, you can not do pip install.

from pymfem.

jan-janssen avatar jan-janssen commented on August 18, 2024

It was compiled with: https://github.com/conda-forge/mfem-feedstock/blob/main/recipe/build.sh

make config CXX=$CXX PREFIX=$PREFIX MFEM_SHARED=YES MFEM_STATIC=NO MFEM_USE_MPI=YES MFEM_USE_METIS_5=YES CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" LIBS="$LIBS" HYPRE_OPT="-I$PREFIX/include" GHV_CXX=$CXX_FOR_BUILD
make lib
make install

from pymfem.

sshiraiwa avatar sshiraiwa commented on August 18, 2024

We don't have a plan to change setup.py for this specific installation pattern. Probably, better approach would be to modify the feedstock and build the wrapper together.

from pymfem.

jan-janssen avatar jan-janssen commented on August 18, 2024

We don't have a plan to change setup.py for this specific installation pattern.

I can patch the setup.py I just do not fully understand which option to change. I tried to add python -m pip install . -vv --mfem-prefix=${PREFIX} but that did not work. Can you just tell me how to disable the build process?

from pymfem.

sshiraiwa avatar sshiraiwa commented on August 18, 2024

In setup.py, we run SWIG to generate a wrapper code. SWIG needs to read all C++ header files.
The location of header files is set by using --mfem-source option. If Conda package does not contain
header file, SWIG will fail and thus we can not build PyMFEM.

from pymfem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.