44{% set ver2 = '.'.join(version.split('.')[0:2]) %}
55{% set ver2nd = ''.join(version.split('.')[0:2]) %}
66{% set ver3nd = ''.join(version.split('.')[0:3]) %}
7- {% set build_number = "0" %}
7+ {% set build_number = 1 %}
88{% set channel_targets = ('abc', 'def') %}
99
1010# this makes the linter happy
3737 {% set py_interp_debug = "no" %}
3838{% endif %}
3939
40+ {% set rl_string = "" %} # [win or readline_mode == 'readline']
41+ {% set rl_string = "el_" %} # [not win and readline_mode == 'editline']
42+ {% set rl_string = "norl_" %} # [not win and readline_mode == 'none']
43+
4044package :
4145 name : python-split
4246 version : {{ version }}{{ dev }}
@@ -89,7 +93,8 @@ source:
8993 {% endif %}
9094
9195build :
92- number : {{ build_number }}
96+ number : {{ build_number + 100 }} # [win or readline_mode == 'readline']
97+ number : {{ build_number }} # [not(win or readline_mode == 'readline')]
9398
9499requirements :
95100 build :
@@ -106,7 +111,9 @@ outputs:
106111 script : build_base.sh # [unix]
107112 script : build_base.bat # [win]
108113 build :
109- number : {{ build_number }}
114+ number : {{ build_number + 200 }} # [win or readline_mode == 'readline']
115+ number : {{ build_number + 100 }} # [not win and readline_mode == 'editline']
116+ number : {{ build_number }} # [not win and readline_mode == 'none']
110117 activate_in_script : true
111118 # Windows has issues updating python if conda is using files itself.
112119 # Copy rather than link.
@@ -127,13 +134,13 @@ outputs:
127134 # - lib/python{{ ver2 }}/lib-dynload/_hashlib.cpython-{{ ver2nd }}-x86_64-linux-gnu.so # [linux]
128135 # - lib/libpython3.dylib # [osx]
129136 # match python.org compiler standard
130- skip : true # [win and int(float(vc)) < 14]
137+ skip : true # [win and ( int(float(vc)) < 14 or readline_mode != 'none') ]
131138{% if 'conda-forge' in channel_targets %}
132139 skip_compile_pyc :
133140 - ' *.py' # [build_platform != target_platform]
134141{% endif %}
135- string : {{ dev_ }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython # ["conda-forge" in (channel_targets or "")]
136- string : h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }} # ["conda-forge" not in (channel_targets or "")]
142+ string : {{ dev_ }}h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython # ["conda-forge" in (channel_targets or "")]
143+ string : h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }} # ["conda-forge" not in (channel_targets or "")]
137144{% if 'conda-forge' in channel_targets %}
138145 run_exports :
139146 noarch :
@@ -144,6 +151,7 @@ outputs:
144151 script_env :
145152 - PY_INTERP_LINKAGE_NATURE={{ linkage_nature_env }}
146153 - PY_INTERP_DEBUG={{ py_interp_debug }}
154+ - READLINE_MODE={{ readline_mode }}
147155 # Putting these here means they get emitted to build_env_setup.{sh,bat} meaning we can launch IDEs
148156 # after sourcing or calling that script without examine the contents of conda_build.{sh,bat} for
149157 # important env. vars.
@@ -193,7 +201,8 @@ outputs:
193201 - xz
194202 - zlib
195203 - openssl
196- - readline # [not win]
204+ - readline {{ readline }} # [readline_mode == 'readline']
205+ - libedit # [readline_mode == 'editline']
197206 - tk
198207 - ncurses # [unix]
199208 - libffi 3.4
@@ -290,15 +299,17 @@ outputs:
290299 script : build_static.sh # [unix]
291300 script : build_static.bat # [win]
292301 build :
293- number : {{ build_number }}
302+ number : {{ build_number + 100 }} # [win or readline_mode == 'readline']
303+ number : {{ build_number }} # [not(win or readline_mode == 'readline')]
294304 activate_in_script : true
295305{% if 'conda-forge' in channel_targets %}
296306 ignore_run_exports :
297307 - python_abi
298- string : h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython
308+ string : h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython
299309{% else %}
300- string : h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}
310+ string : h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}
301311{% endif %}
312+ skip : true # [win and readline_mode != 'none']
302313 requirements :
303314 build :
304315 - {{ compiler('c') }}
0 commit comments