install setproctitle from pypi instead of building from source

This commit is contained in:
acxz
2020-12-17 00:36:12 -05:00
parent c8d14eb3c5
commit 020ad98f6f
9 changed files with 10 additions and 41 deletions
+1 -1
View File
@@ -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)
+1 -4
View File
@@ -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.
+1 -1
View File
@@ -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,
+1
View File
@@ -23,6 +23,7 @@ py-spy >= 0.2.0
pyyaml
redis >= 3.5.0
requests
setproctitle
## setup.py extras
atari_py
+2 -1
View File
@@ -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",