Skip to content

Commit e4604d5

Browse files
authored
Merge pull request #195 from resibots/fix_python
Fix python
2 parents bf350b8 + e0eb4b9 commit e4604d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wscript

+4
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@ def build_robot_dart(bld):
335335
py_files = [f[len(bld.path.abspath())+1:] for f in py_files]
336336
py_srcs = " ".join(py_files)
337337

338+
# Read suffix to be sure! Do not rely on waf!
339+
if len(bld.env['PYTHON_CONFIG']) > 0 and len(bld.env['PYTHON_CONFIG'][0]) > 0:
340+
py_suffix = bld.cmd_and_log('%s --extension-suffix' % bld.env['PYTHON_CONFIG'][0], quiet=True)[:-1] # ignore end of line!
341+
bld.env['pyext_PATTERN'] = "%s" + py_suffix
338342
bld.program(features = 'c cshlib pyext',
339343
source = './src/python/robot_dart.cc ' + py_srcs,
340344
includes = './src',

0 commit comments

Comments
 (0)