Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8fba051

Browse files
committed
Remove PYTHON_WITH_WIDE_UNICODE flag
ABIFlags were introduced in PY32, and --with_wide_unicode was removed in PY33. https://docs.python.org/3/whatsnew/3.3.html#functionality Closes #417
1 parent a14ff14 commit 8fba051

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
3737
- Upgraded NUnit framework from `2.6.4` to `3.6.0` (#371)
3838
- Unfroze Mono version on Travis (#345)
3939
- Changed `conda.recipe` build to only pull-requests (#345)
40+
- Combine `Py_DEBUG` and `PYTHON_WITH_PYDEBUG` flags (#362)
4041

4142
### Deprecated
4243

@@ -63,6 +64,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG][].
6364
- Removed `six` dependency for `unittests` (#329)
6465
- Removed `Mono.Unix` dependency for `UCS4` (#360)
6566
- Removed need for `Python.Runtime.dll.config`
67+
- Removed PY32 build option `PYTHON_WITH_WIDE_UNICODE` (#417)
6668

6769
## [2.2.2][] - 2017-01-29
6870

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ def build_extension(self, ext):
182182
defines.append("PYTHON_WITH_PYDEBUG")
183183
if "m" in sys.abiflags:
184184
defines.append("PYTHON_WITH_PYMALLOC")
185-
if "u" in sys.abiflags:
186-
defines.append("PYTHON_WITH_WIDE_UNICODE")
187185

188186
# check the interop file exists, and create it if it doesn't
189187
interop_file = _get_interop_filename()

src/runtime/runtime.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,11 @@ public class Runtime
138138
#else
139139
internal const string dllWithPyMalloc = "";
140140
#endif
141-
#if PYTHON_WITH_WIDE_UNICODE
142-
internal const string dllWithWideUnicode = "u";
143-
#else
144-
internal const string dllWithWideUnicode = "";
145-
#endif
146141

147142
#if PYTHON_WITHOUT_ENABLE_SHARED
148143
public const string PythonDll = "__Internal";
149144
#else
150-
public const string PythonDll = dllBase + dllWithPyDebug + dllWithPyMalloc + dllWithWideUnicode;
145+
public const string PythonDll = dllBase + dllWithPyDebug + dllWithPyMalloc;
151146
#endif
152147

153148
public static readonly int pyversionnumber = Convert.ToInt32(pyver);

0 commit comments

Comments
 (0)