Skip to content

Commit

Permalink
import wheel in try/except
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilaananthram committed Aug 13, 2015
1 parent a759c32 commit f2294f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,12 @@ def findRequirements(nupicCoreReleaseDir):
# use develop nupiccore bindings. not PYPI
eggFiles = glob.glob(os.path.join(nupicCoreReleaseDir, "*.egg"))
for egg in eggFiles:
from wheel import egg2wheel
egg2wheel.egg2wheel(egg, nupicCoreReleaseDir)
# Temporary situation. Fix later
try:
from wheel import egg2wheel
egg2wheel.egg2wheel(egg, nupicCoreReleaseDir)
except ImportError:
pass
dependencies.append(egg)

wheelFiles = glob.glob(os.path.join(nupicCoreReleaseDir, "*.whl"))
Expand Down

0 comments on commit f2294f5

Please sign in to comment.