File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
Release Notes
2
2
=============
3
3
4
+ **UNRELEASED **
5
+
6
+ - Fixed regression introduced in 0.36.0 on Python 2.7 when a custom generator
7
+ name was passed as unicode (Scikit-build)
8
+ (``TypeError: 'unicode' does not have the buffer interface ``)
9
+
4
10
**0.36.0 (2020-12-01) **
5
11
6
12
- Added official Python 3.9 support
Original file line number Diff line number Diff line change @@ -373,6 +373,11 @@ def run(self):
373
373
374
374
def write_wheelfile (self , wheelfile_base , generator = 'bdist_wheel (' + wheel_version + ')' ):
375
375
from email .message import Message
376
+
377
+ # Workaround for Python 2.7 for when "generator" is unicode
378
+ if sys .version_info < (3 ,) and not isinstance (generator , str ):
379
+ generator = generator .encode ('utf-8' )
380
+
376
381
msg = Message ()
377
382
msg ['Wheel-Version' ] = '1.0' # of the spec
378
383
msg ['Generator' ] = generator
You can’t perform that action at this time.
0 commit comments