Skip to content

Commit e52306d

Browse files
committed
Remove extra python3 file extension for executables
1 parent cbf4842 commit e52306d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGES
22
=======
33

4+
0.7.2 (2017-09-01)
5+
------------------
6+
7+
- Remove extra python3 file extension for executables.
8+
9+
410
0.7.1 (2017-08-18)
511
------------------
612

setuptools_rust/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def build_extension(self, ext):
184184

185185
if executable:
186186
ext_path = build_ext.get_ext_fullpath(target_fname)
187+
# remove .so extension
188+
ext_path, _ = os.path.splitext(ext_path)
189+
# remove python3 extension (i.e. cpython-36m)
187190
ext_path, _ = os.path.splitext(ext_path)
188191
else:
189192
ext_path = build_ext.get_ext_fullpath(target_fname)

0 commit comments

Comments
 (0)