Skip to content

Commit eb39aeb

Browse files
committed
must check right distribution name not pyethapp see issue ethereum#821
1 parent 4241776 commit eb39aeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
__version__ = None
1919
try:
20-
_dist = get_distribution('pyethapp')
20+
_dist = get_distribution('ethereum')
2121
# Normalize case for Windows systems
2222
dist_loc = os.path.normcase(_dist.location)
2323
here = os.path.normcase(__file__)
24-
if not here.startswith(os.path.join(dist_loc, 'pyethapp')):
24+
if not here.startswith(os.path.join(dist_loc, 'ethereum')):
2525
# not installed, but there is another version that *is*
2626
raise DistributionNotFound
2727
__version__ = _dist.version

0 commit comments

Comments
 (0)