Skip to content

Commit

Permalink
remove setproctitle
Browse files Browse the repository at this point in the history
  • Loading branch information
JGjorgji committed Apr 18, 2019
1 parent 5b21834 commit d70beb1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion chaperone/cproc/version.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is designed to be used as a package module, but also as a main program runnable
# by Python2 or Python3 which will print the version. Used in setup.py

VERSION = (0,3,10)
VERSION = (0,3,11)
DISPLAY_VERSION = ".".join([str(v) for v in VERSION])

LICENSE = "Apache License, Version 2.0"
Expand Down
12 changes: 0 additions & 12 deletions chaperone/exec/chaperone.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,6 @@ def main_entry():
if tlp.debug:
config.dump()

# Set proctitle and go

proctitle = "[" + os.path.basename(sys.argv[0]) + "]"
if cmd:
proctitle += " " + cmd

try:
from setproctitle import setproctitle
setproctitle(proctitle)
except ImportError:
pass

# Define here so we can share scope

@asyncio.coroutine
Expand Down
7 changes: 0 additions & 7 deletions chaperone/exec/sdnotify_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,6 @@ def __init__(self, options):
loop.add_signal_handler(signal.SIGTERM, self._got_sig)
loop.add_signal_handler(signal.SIGINT, self._got_sig)

proctitle = '[sdnotify-exec]'

try:
from setproctitle import setproctitle
setproctitle(proctitle)
except ImportError:
pass

def info(self, msg):
if self.verbose:
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ def is_exe(fpath):

requires_list = ['docopt>=0.6.2', 'ruamel.yaml<=0.15', 'voluptuous>=0.8.7', 'aiocron>=0.3']

if which('gcc'):
requires_list += ["setproctitle>=1.1.8"]

setup(
name = "chaperone",
version = get_version(),
Expand Down

0 comments on commit d70beb1

Please sign in to comment.