Skip to content

Commit

Permalink
Use pyreadline3 for Windows (#3367)
Browse files Browse the repository at this point in the history
  • Loading branch information
ESultanik committed Feb 14, 2022
1 parent 037e197 commit f1b007a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
7 changes: 6 additions & 1 deletion polyfile/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
from enum import Enum
from functools import partial, wraps
from io import StringIO
import os
from pathlib import Path
import readline
import sys
import traceback
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Type, TypeVar, Union

if os.name == "posix":
import readline
else:
import pyreadline3 as readline

from .logger import getStatusLogger

log = getStatusLogger("polyfile")
Expand Down
21 changes: 11 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,17 @@ def update(self, n: int):
packages=find_packages(exclude=("tests",)),
python_requires='>=3.7',
install_requires=[
'cint',
'graphviz',
'intervaltree',
'jinja2',
'kaitaistruct>=0.7',
'networkx',
'pdfminer.six', # currently just for ascii85decode
'Pillow>=5.0.0',
'pyyaml>=3.13',
'setuptools'
"cint",
"graphviz",
"intervaltree",
"jinja2",
"kaitaistruct>=0.7",
"networkx",
"pdfminer.six",
"Pillow>=5.0.0",
"pyreadline3;platform_system=='Windows'",
"pyyaml>=3.13",
"setuptools"
],
extras_require={
'demangle': ['cxxfilt'],
Expand Down

0 comments on commit f1b007a

Please sign in to comment.