mirror of
https://github.com/wassname/ray.git
synced 2026-07-11 12:35:33 +08:00
install setproctitle from pypi instead of building from source
This commit is contained in:
@@ -37,7 +37,7 @@ pickle5_path = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)), "pickle5_files")
|
||||
sys.path.insert(0, pickle5_path)
|
||||
|
||||
# Importing psutil & setproctitle. Must be before ray._raylet is initialized.
|
||||
# Importing psutil. Must be before ray._raylet is initialized.
|
||||
thirdparty_files = os.path.join(
|
||||
os.path.abspath(os.path.dirname(__file__)), "thirdparty_files")
|
||||
sys.path.insert(0, thirdparty_files)
|
||||
|
||||
@@ -10,15 +10,12 @@ except ImportError:
|
||||
import sys
|
||||
import tempfile
|
||||
import datetime
|
||||
import setproctitle
|
||||
|
||||
import ray
|
||||
import ray.test_utils
|
||||
import ray.cluster_utils
|
||||
|
||||
# NOTE: We have to import setproctitle after ray because we bundle setproctitle
|
||||
# with ray.
|
||||
import setproctitle
|
||||
|
||||
|
||||
def test_caching_actors(shutdown_only):
|
||||
# Test defining actors before ray.init() has been called.
|
||||
|
||||
@@ -10,6 +10,7 @@ import time
|
||||
import numpy as np
|
||||
import pickle
|
||||
import pytest
|
||||
import setproctitle
|
||||
|
||||
import ray
|
||||
import ray.ray_constants as ray_constants
|
||||
@@ -17,7 +18,6 @@ import ray.util.accelerators
|
||||
import ray.cluster_utils
|
||||
import ray.test_utils
|
||||
from ray import resource_spec
|
||||
import setproctitle
|
||||
import subprocess
|
||||
|
||||
from ray.test_utils import (check_call_ray, RayTestTimeoutException,
|
||||
|
||||
@@ -23,6 +23,7 @@ py-spy >= 0.2.0
|
||||
pyyaml
|
||||
redis >= 3.5.0
|
||||
requests
|
||||
setproctitle
|
||||
|
||||
## setup.py extras
|
||||
atari_py
|
||||
|
||||
+2
-1
@@ -143,6 +143,7 @@ install_requires = [
|
||||
"py-spy >= 0.2.0",
|
||||
"pyyaml",
|
||||
"requests",
|
||||
"setproctitle",
|
||||
"redis >= 3.5.0",
|
||||
"opencensus",
|
||||
"prometheus_client >= 0.7.1",
|
||||
@@ -270,7 +271,7 @@ def build(build_python, build_java):
|
||||
# that certain flags will not be passed along such as --user or sudo.
|
||||
# TODO(rkn): Fix this.
|
||||
if not os.getenv("SKIP_THIRDPARTY_INSTALL"):
|
||||
pip_packages = ["psutil", "setproctitle"]
|
||||
pip_packages = ["psutil"]
|
||||
subprocess.check_call(
|
||||
[
|
||||
sys.executable, "-m", "pip", "install", "-q",
|
||||
|
||||
Reference in New Issue
Block a user