Skip to content

FreeBSD support (fix ready) #17

Closed
Closed
@LukaszMoskala

Description

@LukaszMoskala

Hello,

I get NotImplementedError: Unsupported platform: freebsd13 when doing pip install --upgrade homeassistant. Turns out this package recently became dependency of another dependency of homeassistant.

Please replace in setup.py

SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or
                  sys.platform.startswith("darwin"))

with:

SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or
                  sys.platform.startswith("darwin") or
                  sys.platform.startswith("freebsd"))

Probably we also should handle openbsd, netbsd and dragonflybsd, but I didn't verify if these names are correct. Or maybe we should just do:

SYSTEM_IS_UNIX = (sys.platform.startswith("linux") or
                  sys.platform.startswith("darwin") or
                  'bsd' in sys.platform)

I can also confirm that after making my change, package successfully installs on freebsd.

Thank you in advance, let me know if you need anything else. I can open pull request if that's easier for you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions