Skip to content

Commit 46fc01b

Browse files
authored
Merge pull request ethereum#853 from ycdk/issue-821-fix-missing-version
must check right distribution name not pyethapp see issue ethereum#821
2 parents 4241776 + eb39aeb commit 46fc01b

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)