Skip to content

Commit

Permalink
Corrected installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Grel committed Mar 24, 2017
1 parent 20b859b commit 94d8309
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
#!/usr/bin/env python

from __future__ import print_function
from distutils.core import setup
from distutils.command.install import install as DistutilsInstall

import sys
import subprocess

try:
import tensorflow
except ImportError:
print("Please install tensorflow 0.12.0 or later")
sys.exit()


class MyInstall(DistutilsInstall):
def run(self):
subprocess.call(['make', '-C', 'roi_pooling', 'build'])
Expand All @@ -19,4 +27,6 @@ def run(self):
cmdclass={'install': MyInstall}
)




0 comments on commit 94d8309

Please sign in to comment.