Skip to content

os.uname error on Windows during install #23

@enlochner

Description

@enlochner

When running pip install . I get this error:
AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'?

I think this is because the uname function only works on some Unix systems. We can fix this by using the platform module, and changing line 24 in setup.py to
JAVA_PLATFORM_INCLUDE = JAVA_INCLUDE + '/' + platform.uname()[0].lower()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions