Skip to content

Skip pyethash dependency in Windows #395

Closed
@carver

Description

@carver
  • py-evm Version: 0.2.0a11
  • OS: win

What is wrong?

pyethash won't build on Windows, and probably won't anytime soon. See Consensys/ethjsonrpc#5

The ethash code is C99, which is not well-supported under Windows.

This makes it impossible to install py-evm on Windows, as well as any package that depends on py-evm like the test suite in web3.py. (See ethereum/web3.py#166)

How can it be fixed

A couple options come to mind:

  1. Skip the pyethash install on Windows, so that Windows users can install the EVM without mining capability
  2. Move the pyethash dependency to an "extra" called something like mining.

Number 1 seems better, because it supports mining with a default installation, in non-Windows environments. Number 2 requires an install like pip install py-evm[mining] to support mining.

Does anyone see problems with 1 or 2, or a better solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions