Skip to content

Commit 973fd21

Browse files
authored
Merge pull request #143 from Distributive-Network/Xmader/chore/install-pyreadline3-on-windows-only
Chore: install pyreadline3 on Windows only
2 parents 1db87d8 + ed5e352 commit 973fd21

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ include = [
2828

2929
[tool.poetry.dependencies]
3030
python = "^3.8"
31-
pyreadline3 = "^3.4.1"
31+
pyreadline3 = { version = "^3.4.1", platform = "win32" }
3232
pminit = { version = "*", allow-prereleases = true }
3333

3434

python/pythonmonkey/cli/pmjs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
# @date June 2023
55

66
import sys, os, signal, getopt
7-
try:
8-
import readline # Unix
9-
except ImportError:
10-
import pyreadline3 as readline # Windows
7+
import readline
118
import pythonmonkey as pm
129
globalThis = pm.eval("globalThis")
1310
evalOpts = { 'filename': __file__, 'fromPythonFrame': True, 'strict': False } # type: pm.EvalOptions

0 commit comments

Comments
 (0)