File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
INCLUDE (ExternalProject)
16
16
17
- FIND_PACKAGE (Protobuf 3.1)
17
+ set (PROTOBUF_VERSION 3.1)
18
+ FIND_PACKAGE (Protobuf ${PROTOBUF_VERSION} )
18
19
19
20
IF (PROTOBUF_FOUND)
20
21
EXEC_PROGRAM (${PROTOBUF_PROTOC_EXECUTABLE} ARGS --version OUTPUT_VARIABLE PROTOBUF_VERSION)
Original file line number Diff line number Diff line change 16
16
from setuptools import setup, Extension
17
17
18
18
setup(name="py_paddle",
19
- version="@ PADDLE_VERSION@ ",
19
+ version="${ PADDLE_VERSION} ",
20
20
packages=['py_paddle'],
21
21
include_package_data=True,
22
22
package_data={'py_paddle':['*.py','_swig_paddle.so']},
23
23
install_requires = [
24
24
'numpy>=1.8.0', # The numpy is required.
25
- 'protobuf>=@ PROTOBUF_VERSION@ ' # The paddle protobuf version
25
+ 'protobuf>=${ PROTOBUF_VERSION} ' # The paddle protobuf version
26
26
],
27
27
url='http://www.paddlepaddle.org/',
28
28
license='Apache 2.0',
You can’t perform that action at this time.
0 commit comments