Git Product home page Git Product logo

Comments (6)

aWZHY0yQH81uOYvH avatar aWZHY0yQH81uOYvH commented on August 29, 2024 1

I agree. I'll put together a small PR soon to add the python bindings as an option in the Homebrew formula.

I apologize for being a bit naive about focusing on the default include paths since that was the difference between working and not for me.

from openems.

thliebig avatar thliebig commented on August 29, 2024

I'm not sure this sounds like a viable solution. For example do I never use system include paths to build or install openEMS and dependencies.
For example my default build command on Linux (and similar on Windows) looks like this:
python setup.py build_ext -I/home/<username>/opt/include -L/home/<username>/opt/lib -R/home/<username>/opt/lib

In other words I always reference the full path to all includes and library locations.
I would recommend doing something similar on macOS?

from openems.

thliebig avatar thliebig commented on August 29, 2024

This is btw also what I recommend in the readme inside the python folder

from openems.

aWZHY0yQH81uOYvH avatar aWZHY0yQH81uOYvH commented on August 29, 2024

Perhaps then there should be a small change to the docs indicating that the "extended options" method may still need to be used even when everything is installed in /usr/local.

Additionally, on ARM64 macOS, I believe Homebrew installs stuff in /opt/Homebrew which may cause the same issue even if the default system include paths are not overwritten by the python environment.

I suppose all this would be resolved by using update_openEMS.sh but Homebrew is still the preferred option for macOS users.

Since this problem is mainly centered around Homebrew/macOS, should it get its own special snowflake documentation section? Or if the python install process is going to be inextricably linked (via the install path) to the main build process, which happens inside Homebrew, perhaps the brew formula should be updated to include the python installation (probably a good idea anyways)? Thoughts @biergaizi?

from openems.

aWZHY0yQH81uOYvH avatar aWZHY0yQH81uOYvH commented on August 29, 2024

Adding the python bindings to the Homebrew formula to short circuit this entire problem looks pretty trivial: https://docs.brew.sh/Python-for-Formula-Authors#installing-bindings

from openems.

thliebig avatar thliebig commented on August 29, 2024

Personally I would prefer a solution in which the homebrew formula would solve this. This is exactly what the update_openEMS.sh does for building from source on Linux as well...

from openems.

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.