Skip to content

Commit

Permalink
Remove references to rig
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
dkfellows committed Sep 28, 2023
1 parent f181c44 commit 8b62f79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def __getattr__(cls, name):
# keep_warnings = False

# Search Python docs for extra definitions.
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
'rig': ('https://rig.readthedocs.org/en/stable/', None)
}
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None)
}

# -- linkcode GitHub link generator ---------------------------------------

Expand Down
20 changes: 1 addition & 19 deletions spalloc_client/scripts/alloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@
.. note::
By default, allocated machines are powered on but not booted. If
`Rig <https://github.com/project-rig/rig>`__
is installed, ``spalloc`` provides a ``--boot`` option which also boots
the allocated machine once it has been powered on. This dependency can be
installed using the ``[boot]`` option at install time for spalloc.
Allocated machines are powered on but not booted.
.. image:: _static/spalloc.gif
:alt: Animated GIF showing the typical execution of a spalloc call.
Expand Down Expand Up @@ -120,11 +116,6 @@
config, Job, JobState, __version__, ProtocolError, ProtocolTimeoutError,
SpallocServerException)
from spalloc_client.term import Terminal, render_definitions
# Rig is used to implement the optional '--boot' facility.
try:
from rig.machine_control import MachineController
except ImportError: # pragma: no cover
MachineController = None

arguments = None
t = None
Expand Down Expand Up @@ -330,9 +321,6 @@ def parse_argv(argv):
parser.add_argument("--no-destroy", "-D", action="store_true",
default=False,
help="do not destroy the job on exit")
if MachineController:
parser.add_argument("--boot", "-B", action="store_true", default=False,
help="boot the machine once powered on")

allocation_args = parser.add_argument_group(
"allocation requirement arguments")
Expand Down Expand Up @@ -442,12 +430,6 @@ def run_job(job_args, job_kwargs, ip_file_filename):
# Machine is now ready
write_ips_to_csv(job.connections, ip_file_filename)

# Boot the machine if required
if MachineController and arguments.boot:
update("Job {}: Booting...", t.yellow, job.id)
mc = MachineController(job.hostname)
mc.boot(job.width, job.height)

update("Job {}: Ready!", t.green, job.id)

# Either run the user's application or just print the details.
Expand Down

0 comments on commit 8b62f79

Please sign in to comment.