mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 22:20:52 +08:00
Remove CMake files (#4493)
This commit is contained in:
committed by
Robert Nishihara
parent
7d776f35e1
commit
b0f6ddf6d1
@@ -1,44 +0,0 @@
|
||||
# NOTE: These must be checked before including Cython packages to ensure we are using the right python version.
|
||||
# Segfaults could happen if we are using the wrong version.
|
||||
set(PYTHON_INCLUDE_DIR ${PYTHON_INCLUDE_DIRS})
|
||||
|
||||
# Find Cython executable
|
||||
get_filename_component(_python_path ${PYTHON_EXECUTABLE} PATH)
|
||||
find_program(CYTHON_EXECUTABLE
|
||||
NAMES cython cython.bat cython3
|
||||
HINTS ${_python_path})
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cython REQUIRED_VARS CYTHON_EXECUTABLE)
|
||||
|
||||
include(UseCython)
|
||||
|
||||
include_directories("${NUMPY_INCLUDE_DIR}")
|
||||
include_directories("${CMAKE_CURRENT_LIST_DIR}/../src")
|
||||
include_directories("${CMAKE_CURRENT_LIST_DIR}")
|
||||
|
||||
# Include some generated Arrow headers.
|
||||
include_directories("${ARROW_SOURCE_DIR}/../arrow_ep-build/src")
|
||||
|
||||
# If the pyx file is a C++ file, we should specify that here.
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_LIST_DIR}/ray/_raylet.pyx
|
||||
PROPERTIES CYTHON_IS_CXX TRUE)
|
||||
|
||||
set(RAY_SRC_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/../src/ray")
|
||||
|
||||
cython_add_module(
|
||||
_raylet
|
||||
${RAY_SRC_DIRECTORY}/raylet/raylet_client.cc
|
||||
${CMAKE_CURRENT_LIST_DIR}/ray/_raylet.pyx)
|
||||
|
||||
add_dependencies(_raylet ray_static)
|
||||
|
||||
if(APPLE)
|
||||
target_link_libraries(_raylet "-undefined dynamic_lookup" ray_static)
|
||||
else()
|
||||
target_link_libraries(_raylet ray_static)
|
||||
endif()
|
||||
|
||||
# Make sure that the Python extensions are built before copying the files.
|
||||
add_dependencies(copy_ray _raylet)
|
||||
@@ -87,7 +87,7 @@ setup_commands:
|
||||
# - sudo dpkg --configure -a
|
||||
# Install basics.
|
||||
- sudo apt-get update
|
||||
- sudo apt-get install -y cmake pkg-config build-essential autoconf curl libtool unzip flex bison python
|
||||
- sudo apt-get install -y build-essential curl unzip
|
||||
# Install Anaconda.
|
||||
- wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh || true
|
||||
- bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p $HOME/anaconda3 || true
|
||||
|
||||
@@ -98,7 +98,7 @@ def docker_start_cmds(user, image, mount, cname, user_options):
|
||||
cmds.append(" ".join(docker_check + docker_run))
|
||||
docker_update = [
|
||||
" && ".join(("apt-get -y update", "apt-get -y upgrade",
|
||||
"apt-get install -y git wget cmake psmisc"))
|
||||
"apt-get install -y git wget psmisc"))
|
||||
]
|
||||
cmds.extend(with_docker_exec(docker_update, container_name=cname))
|
||||
return cmds
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import setuptools.command.build_ext as _build_ext
|
||||
# before these files have been created, so we have to move the files
|
||||
# manually.
|
||||
|
||||
# NOTE: The lists below must be kept in sync with ray/CMakeLists.txt.
|
||||
# NOTE: The lists below must be kept in sync with ray/BUILD.bazel.
|
||||
|
||||
ray_files = [
|
||||
"ray/core/src/ray/thirdparty/redis/src/redis-server",
|
||||
|
||||
Reference in New Issue
Block a user