Put everything in paddle python wheel package enable pip install paddle (#3102)
* put everything in paddle wheel * update * update * fix unitest * with platform specsfixstartbug
parent
dda4217c16
commit
36ac89b9c4
@ -1,17 +1,15 @@
|
|||||||
configure_file(submit_local.sh.in
|
configure_file(submit_local.sh.in
|
||||||
submit_local.sh
|
paddle
|
||||||
@ONLY)
|
@ONLY)
|
||||||
|
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/submit_local.sh DESTINATION bin
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/paddle DESTINATION bin
|
||||||
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
||||||
GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
|
GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ)
|
||||||
RENAME paddle)
|
|
||||||
|
|
||||||
configure_file(tools/usage_stat/usage.sh
|
configure_file(tools/usage_stat/usage.sh
|
||||||
usage.sh
|
paddle_usage
|
||||||
@ONLY)
|
@ONLY)
|
||||||
|
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/usage.sh DESTINATION opt/paddle/bin
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/paddle_usage DESTINATION opt/paddle/bin
|
||||||
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
||||||
GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
|
GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ)
|
||||||
RENAME paddle_usage)
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
from setuptools import setup, Extension
|
|
||||||
|
|
||||||
setup(name="py_paddle",
|
|
||||||
version="${PADDLE_VERSION}",
|
|
||||||
packages=['py_paddle'],
|
|
||||||
include_package_data=True,
|
|
||||||
package_data={'py_paddle':['*.py','_swig_paddle.so']},
|
|
||||||
install_requires = [
|
|
||||||
'nltk>=3.2.2',
|
|
||||||
# We use `numpy.flip` in `test_image.py`.
|
|
||||||
# `numpy.flip` is introduced in `1.12.0`
|
|
||||||
'numpy>=1.12.0', # The numpy is required.
|
|
||||||
'protobuf==${PROTOBUF_VERSION}' # The paddle protobuf version
|
|
||||||
],
|
|
||||||
url='http://www.paddlepaddle.org/',
|
|
||||||
license='Apache 2.0',
|
|
||||||
)
|
|
Loading…
Reference in new issue