Skip to content

Commit 47d24e0

Browse files
committed
WIP: readline/editline/noreadline variants
1 parent 4ad3a1d commit 47d24e0

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

recipe/build_base.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ _common_configure_args+=(--with-tcltk-includes="-I${PREFIX}/include")
248248
_common_configure_args+=("--with-tcltk-libs=-L${PREFIX}/lib -ltcl8.6 -ltk8.6")
249249
_common_configure_args+=(--with-platlibdir=lib)
250250

251+
if [ "$READLINE_MODE" = editline ]; then
252+
_common_configure_args+=(--with-readline=editline)
253+
elif [ "$READLINE_MODE" = none ]; then
254+
_common_configure_args+=(--without-readline)
255+
fi
256+
251257
# Add more optimization flags for the static Python interpreter:
252258
declare -a PROFILE_TASK=()
253259
if [[ ${_OPTIMIZED} == yes ]]; then

recipe/conda_build_config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ python_impl:
44
- cpython
55
numpy:
66
- 1.26
7+
readline_mode:
8+
- readline
9+
- editline
10+
- none
711
MACOSX_SDK_VERSION: # [osx and x86_64]
812
- 10.14 # [osx and x86_64]
913
CONDA_BUILD_SYSROOT: # [osx and x86_64]

recipe/meta.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ outputs:
119119
# - lib/python{{ ver2 }}/lib-dynload/_hashlib.cpython-{{ ver2nd }}-x86_64-linux-gnu.so # [linux]
120120
# - lib/libpython3.dylib # [osx]
121121
# match python.org compiler standard
122-
skip: true # [win and int(float(vc)) < 14]
122+
skip: true # [win and (int(float(vc)) < 14 or readline_mode != 'none')]
123123
{% if 'conda-forge' in channel_targets %}
124124
skip_compile_pyc:
125125
- '*.py' # [build_platform != target_platform]
@@ -136,6 +136,7 @@ outputs:
136136
script_env:
137137
- PY_INTERP_LINKAGE_NATURE={{ linkage_nature_env }}
138138
- PY_INTERP_DEBUG={{ py_interp_debug }}
139+
- READLINE_MODE={{ readline_mode }}
139140
# Putting these here means they get emitted to build_env_setup.{sh,bat} meaning we can launch IDEs
140141
# after sourcing or calling that script without examine the contents of conda_build.{sh,bat} for
141142
# important env. vars.
@@ -184,7 +185,8 @@ outputs:
184185
- xz {{ xz }}
185186
- zlib {{ zlib }}
186187
- openssl {{ openssl }}
187-
- readline {{ readline }} # [not win]
188+
- readline {{ readline }} # [readline_mode == 'readline']
189+
- libedit # [readline_mode == 'editline']
188190
- tk {{ tk }}
189191
- ncurses 6.4 # [unix]
190192
- libffi {{ libffi }}

0 commit comments

Comments
 (0)