forked from M-Labs/artiq
1
0
Fork 0

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 aa26b13816
commit 8d0034e11d
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, RemoteError
@ -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

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