2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

rpctool: make readline optional, add to conda dependencies. Closes #442

This commit is contained in:
Sebastien Bourdeauducq 2016-05-25 11:11:59 -05:00
parent ec34a552b0
commit 8c1f1d8f2a
2 changed files with 8 additions and 1 deletions

View File

@ -5,7 +5,6 @@ import textwrap
import sys
import traceback
import numpy as np # Needed to use numpy in RPC call arguments on cmd line
import readline # This makes input() nicer
import pprint
from artiq.protocols.pc_rpc import AutoTarget, Client
@ -87,6 +86,12 @@ def call_method(remote, method_name, args):
def interactive(remote):
try:
import readline # This makes input() nicer
except ImportError:
print("Warning: readline not available. "
"Install it to add line editing capabilities.")
while True:
try:
cmd = input("({}) ".format(remote.get_selected_target()))

View File

@ -38,6 +38,8 @@ requirements:
- binutils-or1k-linux
run:
- python >=3.5.1
- readline # [linux]
- pyreadline # [win]
- llvmlite-artiq 0.10.0.dev py35_24
- scipy
- numpy