mirror of https://github.com/m-labs/artiq.git
rpctool: make readline optional, add to conda dependencies. Closes #442
This commit is contained in:
parent
ec34a552b0
commit
8c1f1d8f2a
|
@ -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()))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue