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# this is just for the initial build, to break dependencies with python -> pip -> libpython-static
1010{% set bootstrap = "false" %}
3939 {% set py_interp_debug = "no" %}
4040{% endif %}
4141
42+ {% set rl_string = "" %} # [win or readline_mode == 'readline']
43+ {% set rl_string = "el_" %} # [not win and readline_mode == 'editline']
44+ {% set rl_string = "norl_" %} # [not win and readline_mode == 'none']
45+
4246package :
4347 name : python-split
4448 version : {{ version }}{{ dev }}
@@ -90,7 +94,8 @@ source:
9094 {% endif %}
9195
9296build :
93- number : {{ build_number }}
97+ number : {{ build_number + 100 }} # [win or readline_mode == 'readline']
98+ number : {{ build_number }} # [not(win or readline_mode == 'readline')]
9499
95100requirements :
96101 build :
@@ -107,7 +112,9 @@ outputs:
107112 script : build_base.sh # [unix]
108113 script : build_base.bat # [win]
109114 build :
110- number : {{ build_number }}
115+ number : {{ build_number + 200 }} # [win or readline_mode == 'readline']
116+ number : {{ build_number + 100 }} # [not win and readline_mode == 'editline']
117+ number : {{ build_number }} # [not win and readline_mode == 'none']
111118 activate_in_script : true
112119 # Windows has issues updating python if conda is using files itself.
113120 # Copy rather than link.
@@ -128,13 +135,13 @@ outputs:
128135 # - lib/python{{ ver2 }}/lib-dynload/_hashlib.cpython-{{ ver2nd }}-x86_64-linux-gnu.so # [linux]
129136 # - lib/libpython3.dylib # [osx]
130137 # match python.org compiler standard
131- skip : true # [win and int(float(vc)) < 14]
138+ skip : true # [win and ( int(float(vc)) < 14 or readline_mode != 'none') ]
132139{% if 'conda-forge' in channel_targets %}
133140 skip_compile_pyc :
134141 - ' *.py' # [build_platform != target_platform]
135142{% endif %}
136- string : {{ dev_ }}h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython # ["conda-forge" in (channel_targets or "")]
137- string : h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }} # ["conda-forge" not in (channel_targets or "")]
143+ string : {{ dev_ }}h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython # ["conda-forge" in (channel_targets or "")]
144+ string : h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }} # ["conda-forge" not in (channel_targets or "")]
138145{% if 'conda-forge' in channel_targets %}
139146 run_exports :
140147 noarch :
@@ -145,6 +152,7 @@ outputs:
145152 script_env :
146153 - PY_INTERP_LINKAGE_NATURE={{ linkage_nature_env }}
147154 - PY_INTERP_DEBUG={{ py_interp_debug }}
155+ - READLINE_MODE={{ readline_mode }}
148156 # Putting these here means they get emitted to build_env_setup.{sh,bat} meaning we can launch IDEs
149157 # after sourcing or calling that script without examine the contents of conda_build.{sh,bat} for
150158 # important env. vars.
@@ -192,7 +200,8 @@ outputs:
192200 - xz
193201 - zlib
194202 - openssl
195- - readline # [not win]
203+ - readline {{ readline }} # [readline_mode == 'readline']
204+ - libedit # [readline_mode == 'editline']
196205 - tk
197206 - ncurses # [unix]
198207 - libffi 3.4
@@ -291,15 +300,17 @@ outputs:
291300 script : build_static.sh # [unix]
292301 script : build_static.bat # [win]
293302 build :
294- number : {{ build_number }}
303+ number : {{ build_number + 100 }} # [win or readline_mode == 'readline']
304+ number : {{ build_number }} # [not(win or readline_mode == 'readline')]
295305 activate_in_script : true
296306{% if 'conda-forge' in channel_targets %}
297307 ignore_run_exports :
298308 - python_abi
299- string : h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython
309+ string : h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}_cpython
300310{% else %}
301- string : h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}
311+ string : h{{ PKG_HASH }}_{{ rl_string }}{{ PKG_BUILDNUM }}{{ linkage_nature }}{{ debug }}
302312{% endif %}
313+ skip : true # [win and readline_mode != 'none']
303314 requirements :
304315 build :
305316 - {{ compiler('c') }}
0 commit comments