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

Skip to content

Commit 49c85b4

Browse files
committed
Merge branch 'travis-find_dll' into pythonnet_master
Closes #352 Embedded tests start running and find dll now, but crash due to Pythonnet issues Disabled embedded tests again on travis until fixed issues.
2 parents d7942c8 + fcd1cd2 commit 49c85b4

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,17 @@ install:
3535
- coverage run setup.py build_ext --inplace
3636

3737
script:
38+
# Set-up and run python tests
3839
- export PYTHONPATH=`pwd`:$PYTHONPATH
3940
- python -m pytest
41+
42+
# Set-up dll path for embedded tests
43+
- OUTPUT=$(python --version 2>&1)
44+
- PY_VER=${OUTPUT:7:9}
45+
- export LD_LIBRARY_PATH=/opt/python/$PY_VER/lib:$LD_LIBRARY_PATH
46+
- echo $LD_LIBRARY_PATH
47+
- cp Python.Runtime.dll.config src/embed_tests/bin/Python.Runtime.dll.config
48+
# Run embedded tests
4049
# - mono ./packages/NUnit.*/tools/nunit3-console.exe src/embed_tests/bin/Python.EmbeddingTest.dll
4150

4251
after_success:

Python.Runtime.dll.config

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@
44
Keep this file next to Python.Runtime.dll
55
For more information read:
66
http://www.mono-project.com/Config
7-
http://www.mono-project.com/Config_DllMap -->
7+
http://www.mono-project.com/docs/advanced/pinvoke/dllmap -->
8+
<!-- Only really needed for PY2-->
89
<dllmap dll="python27" target="libpython2.7.so" os="!windows" />
910
<dllmap dll="python33" target="libpython3.3.so" os="!windows" />
1011
<dllmap dll="python34" target="libpython3.4.so" os="!windows" />
1112
<dllmap dll="python35" target="libpython3.5.so" os="!windows" />
1213
<dllmap dll="python36" target="libpython3.6.so" os="!windows" />
1314
<dllmap dll="python37" target="libpython3.7.so" os="!windows" />
14-
<dllmap dll="python27.dll" target="libpython2.7.so" os="!windows" />
15-
<dllmap dll="python33.dll" target="libpython3.3.so" os="!windows" />
16-
<dllmap dll="python34.dll" target="libpython3.4.so" os="!windows" />
17-
<dllmap dll="python35.dll" target="libpython3.5.so" os="!windows" />
18-
<dllmap dll="python36.dll" target="libpython3.6.so" os="!windows" />
19-
<dllmap dll="python37.dll" target="libpython3.7.so" os="!windows" />
2015
</configuration>

0 commit comments

Comments
 (0)