Fix caffe build issue with python 3 (#5324)

This commit is contained in:
Pramod S Kumbhar 2017-09-10 09:28:39 +02:00 committed by Todd Gamblin
parent 2eb8db1dd2
commit 156dedac6b

View File

@ -84,4 +84,8 @@ def cmake_args(self):
'-DUSE_LEVELDB=%s' % ('+leveldb' in spec),
'-DUSE_LMDB=%s' % ('+lmdb' in spec)]
if spec.satisfies('+python'):
version = spec['python'].version.up_to(1)
args.append('-Dpython_version=%s' % version)
return args