File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff 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:
252258declare -a PROFILE_TASK=()
253259if [[ ${_OPTIMIZED} == yes ]]; then
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ python_impl:
44 - cpython
55numpy :
66 - 1.26
7+ readline_mode :
8+ - readline
9+ - editline
10+ - none
711MACOSX_SDK_VERSION : # [osx and x86_64]
812 - 10.14 # [osx and x86_64]
913CONDA_BUILD_SYSROOT : # [osx and x86_64]
Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments