Skip to content

Commit

Permalink
Merge pull request ethereum#853 from ycdk/issue-821-fix-missing-version
Browse files Browse the repository at this point in the history
must check right distribution name not pyethapp see issue ethereum#821
  • Loading branch information
joeykrug authored Jan 13, 2018
2 parents 4241776 + eb39aeb commit 46fc01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethereum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

__version__ = None
try:
_dist = get_distribution('pyethapp')
_dist = get_distribution('ethereum')
# Normalize case for Windows systems
dist_loc = os.path.normcase(_dist.location)
here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, 'pyethapp')):
if not here.startswith(os.path.join(dist_loc, 'ethereum')):
# not installed, but there is another version that *is*
raise DistributionNotFound
__version__ = _dist.version
Expand Down

0 comments on commit 46fc01b

Please sign in to comment.